aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2019-05-21 19:41:51 +0000
committerandroid-build-prod (mdb) <android-build-team-robot@google.com>2019-05-21 19:41:51 +0000
commitae9d09f08151fb4fe019d7ace2475ea5c99fc59b (patch)
treefce3bf6c196fd2dad2db29b05780944c58a0e2c0
parent74a0cce77f0599a2efb0c6409d420e9ffc171821 (diff)
parent1db4f387edd30fde98be8da2a315dd82f1c647d9 (diff)
downloadMicrosoft-GSL-ae9d09f08151fb4fe019d7ace2475ea5c99fc59b.tar.gz
Snap for 5590161 from 1db4f387edd30fde98be8da2a315dd82f1c647d9 to simpleperf-release
Change-Id: Id3c75baafc55ac322ab2e5efdcde21f3b54d245f
-rw-r--r--METADATA6
-rw-r--r--include/gsl/string_span3
2 files changed, 6 insertions, 3 deletions
diff --git a/METADATA b/METADATA
index c1ce0f4..494ca07 100644
--- a/METADATA
+++ b/METADATA
@@ -5,10 +5,10 @@ third_party {
type: GIT
value: "https://github.com/Microsoft/GSL"
}
- version: "7d78b743e43ecba06ca47426d03d9d16076dec16"
+ version: "b74b286d5e333561b0f1ef1abd18de2606624455"
last_upgrade_date {
year: 2019
- month: 2
- day: 1
+ month: 5
+ day: 2
}
}
diff --git a/include/gsl/string_span b/include/gsl/string_span
index b5dfd18..85112e5 100644
--- a/include/gsl/string_span
+++ b/include/gsl/string_span
@@ -175,6 +175,7 @@ class basic_string_span
{
public:
using element_type = CharT;
+ using value_type = std::remove_cv_t<element_type>;
using pointer = std::add_pointer_t<element_type>;
using reference = std::add_lvalue_reference_t<element_type>;
using const_reference = std::add_lvalue_reference_t<std::add_const_t<element_type>>;
@@ -186,6 +187,8 @@ public:
using reverse_iterator = typename impl_type::reverse_iterator;
using const_reverse_iterator = typename impl_type::const_reverse_iterator;
+ using size_type = index_type;
+
// default (empty)
constexpr basic_string_span() noexcept = default;