[string.view.capacity] (original) (raw)

27 Strings library [strings]

27.3 String view classes [string.view]

27.3.3 Class template basic_string_view [string.view.template]

27.3.3.5 Capacity [string.view.capacity]

🔗

constexpr size_type size() const noexcept;constexpr size_type length() const noexcept;

1

#

Returns: size_.

🔗

constexpr size_type max_size() const noexcept;

2

#

Returns: The largest possible number of char-like objects that can be referred to by a basic_string_view.

🔗

constexpr bool empty() const noexcept;

3

#

Returns: size_ == 0.