native 0.0.1
Vectors, masks and wide register packs for C++26
Loading...
Searching...
No Matches
native.static_string Module Reference

Classes

struct  native::reify< T, xs >
 Store a compile-time sequence followed by one value-initialized terminator. More...
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

Files

file  src/native.static_string.ccm