aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-05-03 13:11:39 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-05-03 13:11:39 -0700
commit5a542b476ab01ef1a223655a2d87fe3d83bb78d3 (patch)
treefce3bf6c196fd2dad2db29b05780944c58a0e2c0
parentd4e54c121f49d73c9e18aff087ce3dbafc2eab47 (diff)
parent1db4f387edd30fde98be8da2a315dd82f1c647d9 (diff)
downloadMicrosoft-GSL-5a542b476ab01ef1a223655a2d87fe3d83bb78d3.tar.gz
Upgrade Microsoft-GSL to b74b286d5e333561b0f1ef1abd18de2606624455 am: 98f310ea44
am: 1db4f387ed Change-Id: I5f43ac982ceb6d062ef0f0589acb84311a9f92e7
-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;