aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-05-02 22:33:42 -0700
committerHaibo Huang <hhb@google.com>2019-05-02 22:33:42 -0700
commit98f310ea448b8c45d4b8731525a8cd7310da03cd (patch)
treefce3bf6c196fd2dad2db29b05780944c58a0e2c0
parent74a0cce77f0599a2efb0c6409d420e9ffc171821 (diff)
parentb74b286d5e333561b0f1ef1abd18de2606624455 (diff)
downloadMicrosoft-GSL-98f310ea448b8c45d4b8731525a8cd7310da03cd.tar.gz
Upgrade Microsoft-GSL to b74b286d5e333561b0f1ef1abd18de2606624455android-o-mr1-iot-release-1.0.12oreo-mr1-iot-release
Test: None Change-Id: I1ef5e6b32449ef7ea4a952fe3c503c34fc7b9bf6
-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;