add value_type size_type for string_span (#727)

This commit is contained in:
Fei Sun 2019-04-12 01:40:02 +08:00 committed by Anna Gringauze
parent 7d78b743e4
commit b74b286d5e

View File

@ -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;