table of contents
| std::text_encoding::aliases_view(3) | C++ Standard Libary | std::text_encoding::aliases_view(3) |
NAME¶
std::text_encoding::aliases_view - std::text_encoding::aliases_view
Synopsis¶
class text_encoding::aliases_view (since C++26) : public ranges::view_interface<text_encoding::aliases_view>
The nested class text_encoding::aliases_view is a view over aliases of the character encoding.
Let r denote an instance of aliases_view. For a non-empty range r:
* r.front() is the primary name of the registered character encoding,
* r contains the aliases of the registered character encoding such that the
order of the
aliases is unspecified,
* each element in r is a non-null and non-empty null-terminated byte string
encoded in
the literal character encoding and comprising only characters from the basic
character
set, and
* r does not contain duplicate values when compared with std::strcmp.
These are the following type properties of text_encoding::aliases_view:
* it models copyable, random_access_range, and borrowed_range.
* it is not required to satisfy common_range and default_initializable.
* both ranges::range_value_t<text_encoding::aliases_view> and
ranges::range_reference_t<text_encoding::aliases_view> denote const
char*.
* ranges::iterator_t<text_encoding::aliases_view> is a
ConstexprIterator.
Member functions¶
returns an iterator of implementation-defined type to the
beginning of the begin aliases view
(public member function) end returns a sentinel of
implementation-defined type of the aliases view
(public member function)
Inherited from std::ranges::view_interface
returns whether the derived view is empty. Provided if it satisfies empty
sized_range or forward_range.
(public member function of std::ranges::view_interface<D>)
cbegin returns a constant iterator to the beginning of the range. (C++23)
(public member function of std::ranges::view_interface<D>) cend
returns a sentinel for the constant iterator of the range. (C++23)
(public member function of std::ranges::view_interface<D>)
returns whether the derived view is not empty. Provided if ranges::empty is
operator bool applicable to it.
(public member function of std::ranges::view_interface<D>)
returns the first element in the derived view. Provided if it satisfies front
forward_range.
(public member function of std::ranges::view_interface<D>)
returns the n^th element in the derived view. Provided if it satisfies
operator[] random_access_range.
(public member function of std::ranges::view_interface<D>)
std::text_encoding::aliases_view::begin
constexpr /*implementation-defined*/ begin() const; (since C++26)
Returns an iterator of implementation-defined type to the beginning of r.
std::text_encoding::aliases_view::end
constexpr /*implementation-defined*/ end() const; (since C++26)
Returns a sentinel of implementation-defined type of r.
Example¶
This section is incomplete
Reason: no example
See also¶
aliases returns a view over aliases of the current character
encoding
(public member function)
| 2026.11.10 | http://cppreference.com |