|
libstdc++
|
#include <>>
Public Types | |
| using | const_iterator |
| using | const_pointer |
| using | const_reference |
| using | const_reverse_iterator |
| using | difference_type |
| using | iterator |
| using | pointer |
| using | reference |
| using | reverse_iterator |
| using | size_type |
| using | traits_type |
| using | value_type |
Public Member Functions | |
| template<contiguous_iterator _It, sized_sentinel_for< _It > _End> | |
| constexpr | basic_string_view (_It __first, _End __last) noexcept(noexcept(__last - __first)) |
| template<typename _Range, typename _DRange = remove_cvref_t<_Range>> | |
| constexpr | basic_string_view (_Range &&__r) noexcept(noexcept(ranges::size(__r)) &&noexcept(ranges::data(__r))) |
| constexpr | basic_string_view (const _CharT *__str) noexcept |
| constexpr | basic_string_view (const _CharT *__str, size_type __len) noexcept |
| constexpr | basic_string_view (const basic_string_view &) noexcept=default |
| basic_string_view (nullptr_t)=delete | |
| constexpr const_reference | at (size_type __pos) const |
| constexpr const_reference | back () const noexcept |
| constexpr const_iterator | begin () const noexcept |
| constexpr const_iterator | cbegin () const noexcept |
| constexpr const_iterator | cend () const noexcept |
| constexpr int | compare (basic_string_view __str) const noexcept |
| constexpr int | compare (const _CharT *__str) const noexcept |
| constexpr int | compare (size_type __pos1, size_type __n1, basic_string_view __str) const |
| constexpr int | compare (size_type __pos1, size_type __n1, basic_string_view __str, size_type __pos2, size_type __n2) const |
| constexpr int | compare (size_type __pos1, size_type __n1, const _CharT *__str) const |
| constexpr int | compare (size_type __pos1, size_type __n1, const _CharT *__str, size_type __n2) const noexcept(false) |
| constexpr bool | contains (_CharT __x) const noexcept |
| constexpr bool | contains (basic_string_view __x) const noexcept |
| constexpr bool | contains (const _CharT *__x) const noexcept |
| constexpr size_type | copy (_CharT *__str, size_type __n, size_type __pos=0) const |
| constexpr const_reverse_iterator | crbegin () const noexcept |
| constexpr const_reverse_iterator | crend () const noexcept |
| constexpr const_pointer | data () const noexcept |
| constexpr bool | empty () const noexcept |
| constexpr const_iterator | end () const noexcept |
| constexpr size_type | find (_CharT __c, size_type __pos=0) const noexcept |
| constexpr size_type | find (basic_string_view __str, size_type __pos=0) const noexcept |
| constexpr size_type | find (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
| constexpr size_type | find (const _CharT *__str, size_type __pos=0) const noexcept |
| constexpr size_type | find_first_not_of (_CharT __c, size_type __pos=0) const noexcept |
| constexpr size_type | find_first_not_of (basic_string_view __str, size_type __pos=0) const noexcept |
| constexpr size_type | find_first_not_of (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
| constexpr size_type | find_first_not_of (const _CharT *__str, size_type __pos=0) const noexcept |
| constexpr size_type | find_first_of (_CharT __c, size_type __pos=0) const noexcept |
| constexpr size_type | find_first_of (basic_string_view __str, size_type __pos=0) const noexcept |
| constexpr size_type | find_first_of (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
| constexpr size_type | find_first_of (const _CharT *__str, size_type __pos=0) const noexcept |
| constexpr size_type | find_last_not_of (_CharT __c, size_type __pos=npos) const noexcept |
| constexpr size_type | find_last_not_of (basic_string_view __str, size_type __pos=npos) const noexcept |
| constexpr size_type | find_last_not_of (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
| constexpr size_type | find_last_not_of (const _CharT *__str, size_type __pos=npos) const noexcept |
| constexpr size_type | find_last_of (_CharT __c, size_type __pos=npos) const noexcept |
| constexpr size_type | find_last_of (basic_string_view __str, size_type __pos=npos) const noexcept |
| constexpr size_type | find_last_of (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
| constexpr size_type | find_last_of (const _CharT *__str, size_type __pos=npos) const noexcept |
| constexpr const_reference | front () const noexcept |
| constexpr size_type | length () const noexcept |
| constexpr size_type | max_size () const noexcept |
| constexpr basic_string_view & | operator= (const basic_string_view &) noexcept=default |
| constexpr const_reference | operator[] (size_type __pos) const noexcept |
| constexpr const_reverse_iterator | rbegin () const noexcept |
| constexpr void | remove_prefix (size_type __n) noexcept |
| constexpr void | remove_suffix (size_type __n) noexcept |
| constexpr const_reverse_iterator | rend () const noexcept |
| constexpr size_type | rfind (_CharT __c, size_type __pos=npos) const noexcept |
| constexpr size_type | rfind (basic_string_view __str, size_type __pos=npos) const noexcept |
| constexpr size_type | rfind (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
| constexpr size_type | rfind (const _CharT *__str, size_type __pos=npos) const noexcept |
| constexpr size_type | size () const noexcept |
| constexpr basic_string_view | substr (size_type __pos=0, size_type __n=npos) const noexcept(false) |
| constexpr basic_string_view | subview (size_type __pos=0, size_type __n=npos) const |
| constexpr void | swap (basic_string_view &__sv) noexcept |
Static Public Attributes | |
| static constexpr size_type | npos |
A non-owning reference to a string.
| _CharT | Type of character |
| _Traits | Traits for character type, defaults to char_traits<_CharT>. |
A basic_string_view looks like this:
Definition at line 113 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::const_iterator |
Definition at line 130 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::const_pointer |
Definition at line 127 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::const_reference |
Definition at line 129 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::const_reverse_iterator |
Definition at line 132 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::difference_type |
Definition at line 135 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::iterator |
Definition at line 131 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::pointer |
Definition at line 126 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::reference |
Definition at line 128 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::reverse_iterator |
Definition at line 133 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::size_type |
Definition at line 134 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::traits_type |
Definition at line 124 of file string_view.
| using std::basic_string_view< _CharT, _Traits >::value_type |
Definition at line 125 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 141 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 149 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 155 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 164 of file string_view.
|
inlineexplicitconstexprnoexcept |
Definition at line 180 of file string_view.
|
inlinenodiscardconstexpr |
Definition at line 271 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 290 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 196 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 206 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 211 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 359 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 383 of file string_view.
|
inlinenodiscardconstexpr |
Definition at line 370 of file string_view.
|
inlinenodiscardconstexpr |
Definition at line 375 of file string_view.
|
inlinenodiscardconstexpr |
Definition at line 388 of file string_view.
|
inlinenodiscardconstexpr |
Definition at line 393 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 453 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 448 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 458 of file string_view.
|
inlineconstexpr |
Definition at line 330 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 226 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 231 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 298 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 256 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 201 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 82 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 466 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 49 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 479 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 187 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 543 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 174 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 558 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 507 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 502 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 135 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 517 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 220 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 566 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 198 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 581 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 528 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 522 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 152 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 538 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 282 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 243 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 248 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 263 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 216 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 304 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 312 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 221 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 118 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 484 of file string_view.
|
nodiscardconstexprnoexcept |
Definition at line 98 of file bits/string_view.tcc.
|
inlinenodiscardconstexprnoexcept |
Definition at line 497 of file string_view.
|
inlinenodiscardconstexprnoexcept |
Definition at line 238 of file string_view.
|
inlinenodiscardconstexpr |
Definition at line 343 of file string_view.
|
inlinenodiscardconstexpr |
Definition at line 353 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 319 of file string_view.
|
staticconstexpr |
Definition at line 136 of file string_view.