native 0.0.1
Vectors, masks and wide register packs for C++26
Loading...
Searching...
No Matches
native.static_string.ccm File Reference
#include <native/attributes.h>
#include <concepts>
#include <cstddef>
#include <functional>
#include <iterator>
#include <ostream>
#include <ranges>
#include <string>
#include <string_view>
#include <type_traits>
#include <utility>
Include dependency graph for native.static_string.ccm:

Go to the source code of this file.

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...

Namespaces

namespace  native
 Architecture-tagged vectors, register packs and supporting value types. Native arithmetic follows its architecture tag and instruction-set preconditions. Common utilities do not select or admit a runtime CPU profile.
namespace  std
 Standard-library adaptations documented here for SIMD value types.

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

Detailed Description

SPDX-FileType: Source
SPDX-FileCopyrightText: 2024 Edward Kmett <ekmett@gmail.com>
SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0

Definition in file native.static_string.ccm.