Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::style::ct::detail::Literal< N > Struct Template Reference

Owning fixed-size bytes usable as a structural template argument. More...

#include <ui_static.hpp>

Public Member Functions

consteval Literal (const char(&value)[N])
constexpr std::string_view view () const noexcept

Public Attributes

std::array< char, N > bytes {}
 Owned bytes, including the terminator.

Detailed Description

template<std::size_t N>
struct portals::style::ct::detail::Literal< N >

Owning fixed-size bytes usable as a structural template argument.

Template Parameters
NArray extent including its terminal null byte; embedded nulls are preserved. UTF-8/grapheme validity is deliberately checked by the existing runtime Unicode core.

Constructor & Destructor Documentation

◆ Literal()

template<std::size_t N>
portals::ui::ct::Literal< N >::Literal ( const char(&) value[N])
inlineconsteval
Parameters
valueConstant array copied in full; its last byte must be null.

Member Function Documentation

◆ view()

template<std::size_t N>
std::string_view portals::ui::ct::Literal< N >::view ( ) const
inlineconstexprnoexcept
Returns
Byte view borrowing this value, excluding only the final terminator.

The documentation for this struct was generated from the following file: