mitteLib
Loading...
Searching...
No Matches
mlab::fixed_size_string< N > Struct Template Reference

#include <type_name.hpp>

Public Member Functions

std::size_t constexpr size () const
 
constexpr fixed_size_string (const char s[N])
 
constexpr fixed_size_string (null_terminated_tag, const char *s)
 
template<std::size_t M>
constexpr std::size_t find (fixed_size_string< M > subs) const
 
constexpr std::size_t find_last_of (std::initializer_list< char > cs) const
 
template<std::size_t Start, std::size_t End>
constexpr auto substr () const
 
 operator std::string () const
 

Public Attributes

char data [N]
 

Constructor & Destructor Documentation

◆ fixed_size_string() [1/2]

template<std::size_t N>
mlab::fixed_size_string< N >::fixed_size_string ( const char s[N])
explicitconstexpr

◆ fixed_size_string() [2/2]

template<std::size_t N>
mlab::fixed_size_string< N >::fixed_size_string ( null_terminated_tag ,
const char * s )
explicitconstexpr

Member Function Documentation

◆ find()

template<std::size_t N>
template<std::size_t M>
std::size_t mlab::fixed_size_string< N >::find ( fixed_size_string< M > subs) const
nodiscardconstexpr

◆ find_last_of()

template<std::size_t N>
std::size_t mlab::fixed_size_string< N >::find_last_of ( std::initializer_list< char > cs) const
nodiscardconstexpr

◆ operator std::string()

template<std::size_t N>
mlab::fixed_size_string< N >::operator std::string ( ) const
nodiscard

◆ size()

template<std::size_t N>
std::size_t constexpr mlab::fixed_size_string< N >::size ( ) const
nodiscardconstexpr

◆ substr()

template<std::size_t N>
template<std::size_t Start, std::size_t End>
auto mlab::fixed_size_string< N >::substr ( ) const
nodiscardconstexpr

Member Data Documentation

◆ data

template<std::size_t N>
char mlab::fixed_size_string< N >::data[N]

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