nngn
Loading...
Searching...
No Matches
nngn::fixed_string< N > Struct Template Reference

#include <fixed_string.h>

Public Member Functions

 fixed_string ()=default
 
 fixed_string (const fixed_string &)=default
 
fixed_stringoperator= (const fixed_string &)=default
 
 fixed_string (fixed_string &&) noexcept=default
 
fixed_stringoperator= (fixed_string &&) noexcept=default
 
constexpr fixed_string (const char(&s_)[N+1])
 
constexpr ~fixed_string (void)=default
 
constexpr operator std::string_view (void) const
 
constexpr std::size_t size (void) const
 
constexpr const char * data (void) const
 
constexpr const char * begin (void) const
 
constexpr const char * end (void) const
 

Public Attributes

char s [N] = {}
 

Constructor & Destructor Documentation

◆ fixed_string() [1/4]

template<std::size_t N>
nngn::fixed_string< N >::fixed_string ( )
default

◆ fixed_string() [2/4]

template<std::size_t N>
nngn::fixed_string< N >::fixed_string ( const fixed_string< N > & )
default

◆ fixed_string() [3/4]

template<std::size_t N>
nngn::fixed_string< N >::fixed_string ( fixed_string< N > && )
defaultnoexcept

◆ fixed_string() [4/4]

template<std::size_t N>
nngn::fixed_string< N >::fixed_string ( const char(&) s_[N+1])
constexpr

◆ ~fixed_string()

template<std::size_t N>
nngn::fixed_string< N >::~fixed_string ( void )
constexprdefault

Member Function Documentation

◆ begin()

template<std::size_t N>
const char * nngn::fixed_string< N >::begin ( void ) const
inlineconstexpr

◆ data()

template<std::size_t N>
const char * nngn::fixed_string< N >::data ( void ) const
inlineconstexpr

◆ end()

template<std::size_t N>
const char * nngn::fixed_string< N >::end ( void ) const
inlineconstexpr

◆ operator std::string_view()

template<std::size_t N>
nngn::fixed_string< N >::operator std::string_view ( void ) const
inlineconstexpr

◆ operator=() [1/2]

template<std::size_t N>
fixed_string & nngn::fixed_string< N >::operator= ( const fixed_string< N > & )
default

◆ operator=() [2/2]

template<std::size_t N>
fixed_string & nngn::fixed_string< N >::operator= ( fixed_string< N > && )
defaultnoexcept

◆ size()

template<std::size_t N>
std::size_t nngn::fixed_string< N >::size ( void ) const
inlineconstexpr

Member Data Documentation

◆ s

template<std::size_t N>
char nngn::fixed_string< N >::s[N] = {}

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