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
 
 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/8]

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

◆ fixed_string() [2/8]

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

◆ fixed_string() [3/8]

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

◆ fixed_string() [4/8]

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

◆ ~fixed_string() [1/2]

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

◆ fixed_string() [5/8]

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

◆ fixed_string() [6/8]

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

◆ fixed_string() [7/8]

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

◆ fixed_string() [8/8]

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

◆ ~fixed_string() [2/2]

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

Member Function Documentation

◆ begin() [1/2]

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

◆ begin() [2/2]

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

◆ data() [1/2]

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

◆ data() [2/2]

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

◆ end() [1/2]

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

◆ end() [2/2]

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

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

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

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

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

◆ operator=() [1/4]

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

◆ operator=() [2/4]

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

◆ operator=() [3/4]

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

◆ operator=() [4/4]

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

◆ size() [1/2]

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

◆ size() [2/2]

template<std::size_t N>
constexpr 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 = {}

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