Template class for non-alloc strings. More...
#include <fixed_size_string.hpp>
Public Member Functions | |
fixed_string () noexcept | |
Default constructor. More... | |
fixed_string (const char *c_string) noexcept | |
fixed_string & | operator= (const char *c_string) noexcept |
fixed_string (const std::string &str) noexcept | |
fixed_string & | operator= (const std::string &str) noexcept |
template<size_t N> | |
fixed_string & | operator= (const fixed_string< N > &rhs) noexcept |
const char * | c_str () const noexcept |
std::string | to_string () const |
bool | operator== (const char *rhs) const noexcept |
bool | operator== (const std::string &rhs) const noexcept |
template<size_t N> | |
bool | operator== (const fixed_string< N > &rhs) const noexcept |
bool | operator!= (const char *rhs) const noexcept |
bool | operator!= (const std::string &rhs) const noexcept |
template<size_t N> | |
bool | operator!= (const fixed_string< N > &rhs) const noexcept |
operator const char * () const noexcept | |
size_t | size () const noexcept |
Static Public Attributes | |
static constexpr size_t | max_size = MAX_CHARS |
Template class for non-alloc strings.
Will be truncated when assigned from a longer string.
MAX_CHARS | Maximum number of characters is specified as the template parameter. Space for an additional null terminator will be reserved. |
|
inlinenoexcept |
Default constructor.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
staticconstexpr |