std::text_encoding::aliases_view
From cppreference.com
< cpp | text | text encoding
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Text processing library
Regular expressions library (C++11)
Formatting library (C++20)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++26)
std::text_encoding
text_encoding::aliases_view
class text_encoding::aliases_view
: public ranges::view_interface <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
, andborrowed_range
. - it is not required to satisfy
common_range
anddefault_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.
Contents
[edit] Member functions
begin
(public member function)
end
(public member function)
Inherited from std::ranges::view_interface
returns whether the derived view is empty, provided only if it satisfies
(public member function of
sized_range
or forward_range
(public member function of
std::ranges::view_interface<D>
) [edit]
(C++23)
(public member function of
std::ranges::view_interface<D>
) [edit]
(C++23)
(public member function of
std::ranges::view_interface<D>
) [edit]
returns whether the derived view is not empty, provided only if ranges::empty is applicable to it
(public member function of
(public member function of
std::ranges::view_interface<D>
) [edit]
returns the first element in the derived view, provided if it satisfies
(public member function of
forward_range
(public member function of
std::ranges::view_interface<D>
) [edit]
returns the
(public member function of
n
th element in the derived view, provided only if it satisfies random_access_range
(public member function of
std::ranges::view_interface<D>
) [edit]
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.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example