NRP Core  1.4.1
FixedString< N > Struct Template Reference

#include <fixed_string.h>

Public Member Functions

constexpr FixedString (const char(&str)[N])
 
constexpr FixedString (const FixedString< N > &str)=default
 
template<class T >
constexpr FixedString (T str)
 
constexpr FixedString ()
 
constexpr operator auto () const
 
constexpr operator int () const
 This is only here so that the CLang LSP doesn't complain about template parameter deduction. Remove once this is implemented. More...
 
constexpr operator std::string_view () const
 
constexpr operator std::string () const
 
constexpr const char * data () const
 
template<std::size_t M>
constexpr bool compare (const char(&other)[M]) const
 
constexpr bool compare (const char *const str) const
 
constexpr bool compare (const std::string_view &str) const
 

Public Attributes

char m_data [N] {}
 

Static Public Attributes

static constexpr auto Length = N
 

Constructor & Destructor Documentation

◆ FixedString() [1/4]

template<std::size_t N>
constexpr FixedString< N >::FixedString ( const char(&)  str[N])
inlineconstexpr

◆ FixedString() [2/4]

template<std::size_t N>
constexpr FixedString< N >::FixedString ( const FixedString< N > &  str)
constexprdefault

◆ FixedString() [3/4]

template<std::size_t N>
template<class T >
constexpr FixedString< N >::FixedString ( str)
inlineconstexpr

◆ FixedString() [4/4]

template<std::size_t N>
constexpr FixedString< N >::FixedString ( )
inlineconstexpr

Member Function Documentation

◆ compare() [1/3]

template<std::size_t N>
constexpr bool FixedString< N >::compare ( const char *const  str) const
inlineconstexpr

◆ compare() [2/3]

template<std::size_t N>
template<std::size_t M>
constexpr bool FixedString< N >::compare ( const char(&)  other[M]) const
inlineconstexpr

◆ compare() [3/3]

template<std::size_t N>
constexpr bool FixedString< N >::compare ( const std::string_view &  str) const
inlineconstexpr

◆ data()

template<std::size_t N>
constexpr const char* FixedString< N >::data ( ) const
inlineconstexpr

◆ operator auto()

template<std::size_t N>
constexpr FixedString< N >::operator auto ( ) const
inlineconstexpr

◆ operator int()

template<std::size_t N>
constexpr FixedString< N >::operator int ( ) const
inlineconstexpr

This is only here so that the CLang LSP doesn't complain about template parameter deduction. Remove once this is implemented.

◆ operator std::string()

template<std::size_t N>
constexpr FixedString< N >::operator std::string ( ) const
inlineconstexpr

◆ operator std::string_view()

template<std::size_t N>
constexpr FixedString< N >::operator std::string_view ( ) const
inlineconstexpr

Member Data Documentation

◆ Length

template<std::size_t N>
constexpr auto FixedString< N >::Length = N
staticconstexpr

◆ m_data

template<std::size_t N>
char FixedString< N >::m_data[N] {}

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