|
native 0.0.1
Vectors, masks and wide register packs for C++26
|
Classes | |
| class | native::basic_static_string< CharT, Traits > |
| A view of one complete interned string, with its length retained. The five standard character widths are supported by the _ss literal. Embedded NUL characters remain part of its length. Default construction selects the canonical empty string. The view constructor is a compatibility escape hatch, not a runtime interning operation: arbitrary string_view storage violates the lifetime and pointer-equality/hash contract. More... | |
| class | native::static_c_string |
| A pointer-sized view of a complete interned char string. Length is recovered from the first NUL. Use static_string when embedded NULs matter or repeated end/length scans are undesirable. Default construction selects the canonical empty string; equality compares addresses. More... | |
Functions | |
| template<detail::static_string_literal Text> | |
| consteval auto | native::operator""_ss () noexcept |
| template<detail::static_string_literal Text> requires std::same_as<typename decltype(Text)::char_type, char> | |
| consteval static_c_string | native::operator""_scs () noexcept |
Literal-backed storage has program lifetime and no allocation. With standard character traits, equality and hashing use the interned storage address.
|
constevalexportnoexcept |
Intern a char literal as a pointer-sized C string.
Definition at line 453 of file native.static_string.ccm.
|
constevalexportnoexcept |
Intern a standard-width literal, retaining embedded NUL characters in its length.
Definition at line 441 of file native.static_string.ccm.