cpp17::basic_string_view

Summary

Constructors and Destructors

basic_string_view()
basic_string_view(const CharT *s, size_type count)
basic_string_view(const CharT *s)
basic_string_view(const std::basic_string< CharT, Traits, Allocator > & s)
basic_string_view(const basic_string_view & other)
basic_string_view(basic_string_view &&)
~basic_string_view()

Public types

const_iteratorusing
iterator
const_pointerusing
const CharT *
const_referenceusing
const CharT &
const_reverse_iteratorusing
reverse_iterator
difference_typeusing
std::ptrdiff_t
iteratorusing
const_pointer
pointerusing
CharT *
referenceusing
CharT &
reverse_iteratorusing
std::reverse_iterator< const_iterator >
size_typeusing
std::size_t
traits_typeusing
Traits
value_typeusing
CharT

Public static attributes

npos = static_cast(-1)
constexpr size_type

Public functions

at(size_type pos) const
constexpr const_reference
back() const
constexpr const_reference
begin() const
constexpr iterator
cbegin() const
constexpr const_iterator
cend() const
constexpr const_iterator
compare(basic_string_view v) const
constexpr int
compare(size_type pos1, size_type count1, basic_string_view v) const
constexpr int
compare(size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2) const
constexpr int
compare(const CharT *s) const
constexpr int
compare(size_type pos1, size_type count1, const CharT *s) const
constexpr int
compare(size_type pos1, size_type count1, const CharT *s, size_type count2) const
constexpr int
copy(CharT *dest, size_type count, size_type pos) const
size_type
crbegin() const
constexpr const_reverse_iterator
crend() const
constexpr const_reverse_iterator
data() const
constexpr const_pointer
empty() const
constexpr bool
end() const
constexpr iterator
find(basic_string_view v, size_type pos) const noexcept
constexpr size_type
find(CharT ch, size_type pos) const
constexpr size_type
find(const CharT *s, size_type pos, size_type count) const
constexpr size_type
find(const CharT *s, size_type pos) const
constexpr size_type
find_first_not_of(basic_string_view v, size_type pos) const noexcept
constexpr size_type
find_first_not_of(CharT c, size_type pos) const noexcept
constexpr size_type
find_first_not_of(const CharT *s, size_type pos, size_type count) const
constexpr size_type
find_first_not_of(const CharT *s, size_type pos) const
constexpr size_type
find_first_of(basic_string_view v, size_type pos) const noexcept
constexpr size_type
find_first_of(CharT c, size_type pos) const noexcept
constexpr size_type
find_first_of(const CharT *s, size_type pos, size_type count) const
constexpr size_type
find_first_of(const CharT *s, size_type pos) const
constexpr size_type
find_last_not_of(basic_string_view v, size_type pos) const noexcept
constexpr size_type
find_last_not_of(CharT c, size_type pos) const noexcept
constexpr size_type
find_last_not_of(const CharT *s, size_type pos, size_type count) const
constexpr size_type
find_last_not_of(const CharT *s, size_type pos) const
constexpr size_type
find_last_of(basic_string_view v, size_type pos) const noexcept
constexpr size_type
find_last_of(CharT c, size_type pos) const noexcept
constexpr size_type
find_last_of(const CharT *s, size_type pos, size_type count) const
constexpr size_type
find_last_of(const CharT *s, size_type pos) const
constexpr size_type
front() const
constexpr const_reference
length() const
constexpr size_type
max_size() const
constexpr size_type
operator=(const basic_string_view & view) noexcept=default
constexpr basic_string_view &
operator=(basic_string_view &&) noexcept=default
constexpr basic_string_view &
operator[](size_type pos) const
constexpr const_reference
rbegin() const
constexpr reverse_iterator
remove_prefix(size_type n)
constexpr void
remove_suffix(size_type n)
constexpr void
rend() const
constexpr reverse_iterator
rfind(basic_string_view v, size_type pos) const noexcept
constexpr size_type
rfind(CharT ch, size_type pos) const
constexpr size_type
rfind(const CharT *s, size_type pos, size_type count) const
constexpr size_type
rfind(const CharT *s, size_type pos) const
constexpr size_type
size() const
constexpr size_type
substr(size_type pos, size_type count) const
swap(basic_string_view & other) noexcept
constexpr void

Public types

const_iterator

iterator const_iterator

const_pointer

const CharT * const_pointer

const_reference

const CharT & const_reference

const_reverse_iterator

reverse_iterator const_reverse_iterator

difference_type

std::ptrdiff_t difference_type

iterator

const_pointer iterator

pointer

CharT * pointer

reference

CharT & reference

reverse_iterator

std::reverse_iterator< const_iterator > reverse_iterator

size_type

std::size_t size_type

traits_type

Traits traits_type

value_type

CharT value_type

Public static attributes

npos

constexpr size_type npos = static_cast<size_type>(-1)

Public functions

at

constexpr const_reference at(
  size_type pos
) const 

back

constexpr const_reference back() const