|
template<charutils::char_like T, std::size_t N> |
| cstr (const T(&)[N]) -> cstr< N - 1, T, std::basic_string_view< T > > |
| Deduction guide for cstr with default view type.
|
|
template<charutils::char_like T, std::size_t N, meta::viewer< T > V> |
| cstr (const T(&)[N], const sv_selector< V > &) -> cstr< N - 1, T, V > |
| Deduction guide for cstr with string view type selector.
|
|
template<charutils::char_like T> |
| cstr (const T &ch) -> cstr< 1, T, std::basic_string_view< T > > |
| Deduction guide for cstr with default view type.
|
|
template<charutils::char_like T, meta::viewer< T > V> |
| cstr (const T &ch, const sv_selector< V > &) -> cstr< 1, T, V > |
| Deduction guide for cstr with string view type selector.
|
|
template<std::size_t Idx, charutils::char_like T, typename U , std::size_t N> |
cstr< N, T, U >::reference | get (cstr< N, T, U > &str) noexcept |
| Tuple-like interface, extracts the Idx-th element from the string. More...
|
|
template<std::size_t Idx, charutils::char_like T, typename U , std::size_t N> |
cstr< N, T, U >::const_reference | get (const cstr< N, T, U > &str) noexcept |
| Tuple-like interface, extracts the Idx-th element from the string. More...
|
|
template<std::size_t Idx, charutils::char_like T, typename U , std::size_t N> |
cstr< N, T, U >::rreference | get (cstr< N, T, U > &&str) noexcept |
| Tuple-like interface, extracts the Idx-th element from the string. More...
|
|
template<std::size_t Idx, charutils::char_like T, typename U , std::size_t N> |
const cstr< N, T, U >::const_rreference | get (const cstr< N, T, U > &&str) noexcept |
| Tuple-like interface, extracts the Idx-th element from the string. More...
|
|
template<charutils::char_like T, typename V1 , typename V2 , std::size_t N> |
constexpr void | swap (cstr< N, T, V1 > &lhs, cstr< N, T, V2 > &rhs) |
| Satisfy the named requirement Swappable . More...
|
|
template<can_construct_cstr_from First, can_construct_cstr_from... Str>
requires meta::all_same< typename decltype(cstr(std::declval<First>()))::value_type, typename decltype(cstr(std::declval<Str>()))::value_type...> |
constexpr auto | flatten (const First &first, const Str &...strs) |
| Flatten multiple strings of different lengths. More...
|
|
template<charutils::char_like T, typename U , std::size_t N> |
std::ostream & | operator<< (std::ostream &os, const cstr< N, T, U > &str) |
| Output string to std::ostream.
|
|
The outermost namespace of this library to avoid identifier pollution.