From b74b286d5e333561b0f1ef1abd18de2606624455 Mon Sep 17 00:00:00 2001 From: Fei Sun Date: Fri, 12 Apr 2019 01:40:02 +0800 Subject: [PATCH] add value_type size_type for string_span (#727) --- include/gsl/string_span | 3 +++ 1 file changed, 3 insertions(+) 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; using pointer = std::add_pointer_t; using reference = std::add_lvalue_reference_t; using const_reference = std::add_lvalue_reference_t>; @@ -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;