ORM C++
Loading...
Searching...
No Matches
orm::reflection::FixedString< N > Struct Template Referenceexport

Public Member Functions

constexpr FixedString () noexcept=default
constexpr FixedString (const char(&text)[N+1]) noexcept
constexpr auto size () const noexcept -> std::size_t
constexpr auto empty () const noexcept -> bool
constexpr auto data () const &noexcept -> const char *
auto data () const &&-> const char *=delete
constexpr auto c_str () const &noexcept -> const char *
auto c_str () const &&-> const char *=delete
constexpr auto view () const &noexcept -> std::string_view
auto view () const &&-> std::string_view=delete
constexpr operator std::string_view () const &noexcept
 operator std::string_view () const &&=delete
constexpr auto operator[] (std::size_t index) const noexcept -> char
constexpr auto operator== (const FixedString &) const noexcept -> bool=default

Public Attributes

char value [N+1] {}

Detailed Description

template<std::size_t N>
struct orm::reflection::FixedString< N >

A structural, null-terminated compile-time string.

N is the number of characters, excluding the terminating null character.

Definition at line 16 of file fixed_string.cppm.

Constructor & Destructor Documentation

◆ FixedString() [1/2]

template<std::size_t N>
orm::reflection::FixedString< N >::FixedString ( )
constexprdefaultnoexcept

◆ FixedString() [2/2]

template<std::size_t N>
orm::reflection::FixedString< N >::FixedString ( const char(&) text[N+1])
inlineconstexprnoexcept

Definition at line 22 of file fixed_string.cppm.

Member Function Documentation

◆ c_str() [1/2]

template<std::size_t N>
auto orm::reflection::FixedString< N >::c_str ( ) const && -> const char *=delete
delete

◆ c_str() [2/2]

template<std::size_t N>
auto orm::reflection::FixedString< N >::c_str ( ) const & -> const char *
inlinenodiscardconstexprnoexcept

Definition at line 47 of file fixed_string.cppm.

◆ data() [1/2]

template<std::size_t N>
auto orm::reflection::FixedString< N >::data ( ) const && -> const char *=delete
delete

◆ data() [2/2]

template<std::size_t N>
auto orm::reflection::FixedString< N >::data ( ) const & -> const char *
inlinenodiscardconstexprnoexcept

Definition at line 41 of file fixed_string.cppm.

◆ empty()

template<std::size_t N>
auto orm::reflection::FixedString< N >::empty ( ) const -> bool
inlinenodiscardconstexprnoexcept

Definition at line 36 of file fixed_string.cppm.

◆ operator std::string_view() [1/2]

template<std::size_t N>
orm::reflection::FixedString< N >::operator std::string_view ( ) const &&
delete

◆ operator std::string_view() [2/2]

template<std::size_t N>
orm::reflection::FixedString< N >::operator std::string_view ( ) const &
inlineconstexprnoexcept

Definition at line 59 of file fixed_string.cppm.

◆ operator==()

template<std::size_t N>
auto orm::reflection::FixedString< N >::operator== ( const FixedString< N > & ) const -> bool=default
constexprdefaultnoexcept

◆ operator[]()

template<std::size_t N>
auto orm::reflection::FixedString< N >::operator[] ( std::size_t index) const -> char
inlinenodiscardconstexprnoexcept

Definition at line 65 of file fixed_string.cppm.

◆ size()

template<std::size_t N>
auto orm::reflection::FixedString< N >::size ( ) const -> std::size_t
inlinenodiscardconstexprnoexcept

Definition at line 31 of file fixed_string.cppm.

◆ view() [1/2]

template<std::size_t N>
auto orm::reflection::FixedString< N >::view ( ) const && -> std::string_view=delete
delete

◆ view() [2/2]

template<std::size_t N>
auto orm::reflection::FixedString< N >::view ( ) const & -> std::string_view
inlinenodiscardconstexprnoexcept

Definition at line 53 of file fixed_string.cppm.

Member Data Documentation

◆ value

template<std::size_t N>
char orm::reflection::FixedString< N >::value[N+1] {}

Definition at line 18 of file fixed_string.cppm.


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