enum_name
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
mgutility::fixed_string< N > Class Template Reference

Public Member Functions

MGUTILITY_CNSTXPR fixed_string (const char(&str)[N])
 
template<size_t M>
MGUTILITY_CNSTXPR auto operator+ (const fixed_string< M > &other) const -> fixed_string< N+M - 1 >
 
template<size_t M>
MGUTILITY_CNSTXPR auto operator+ (const char(&str)[M]) const -> fixed_string< N+M - 1 >
 
template<size_t M>
MGUTILITY_CNSTXPR auto append (const char(&str)[M]) -> fixed_string< N > &
 
MGUTILITY_CNSTXPR auto append (string_view str) -> fixed_string< N > &
 
MGUTILITY_CNSTXPR auto pop_back () -> void
 
MGUTILITY_CNSTXPR auto size () const -> size_t
 
constexpr size_t find (char c, size_t pos=0) const noexcept
 
MGUTILITY_CNSTXPR operator string_view () const
 
MGUTILITY_CNSTXPR auto view () const -> string_view
 
constexpr bool empty () const noexcept
 
constexpr const char & operator[] (size_t index) const noexcept
 
MGUTILITY_CNSTXPR bool operator== (const char *rhs) const
 

Static Public Member Functions

template<size_t M>
static MGUTILITY_CNSTXPR auto make (const char(&str)[M]) -> fixed_string< M >
 

Static Public Attributes

static constexpr auto npos = -1
 

Friends

std::ostreamoperator<< (std::ostream &os, const fixed_string< N > &str)
 

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