mimic++ v10.0.1
Loading...
Searching...
No Matches
mimicpp::util::StaticString< Char, length > Class Template Reference

#include <StaticString.hpp>

Collaboration diagram for mimicpp::util::StaticString< Char, length >:
[legend]

Public Member Functions

 explicit (false) const eval StaticString(Char const (&arr)[length+1u]) noexcept
constexpr auto begin () const noexcept
constexpr auto end () const noexcept
constexpr std::basic_string_view< Char > view () const noexcept
constexpr std::basic_string< Char > str () const noexcept
template<std::convertible_to< std::basic_string_view< Char > > String>
constexpr bool operator== (String const &other) const noexcept

Static Public Member Functions

static constexpr bool empty () noexcept
static constexpr std::size_t size () noexcept

Public Attributes

std::array< Char, length+1u > data

Friends

bool operator== (StaticString const &, StaticString const &)=default

Member Function Documentation

◆ begin()

template<typename Char, std::size_t length>
auto mimicpp::util::StaticString< Char, length >::begin ( ) const
inlinenodiscardconstexprnoexcept
Here is the caller graph for this function:

◆ empty()

template<typename Char, std::size_t length>
constexpr bool mimicpp::util::StaticString< Char, length >::empty ( )
inlinestaticnodiscardconstexprnoexcept

◆ end()

template<typename Char, std::size_t length>
auto mimicpp::util::StaticString< Char, length >::end ( ) const
inlinenodiscardconstexprnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ explicit()

template<typename Char, std::size_t length>
mimicpp::util::StaticString< Char, length >::explicit ( false ) )[length+1u] const &
inlinenodiscardnoexcept

◆ operator==()

template<typename Char, std::size_t length>
template<std::convertible_to< std::basic_string_view< Char > > String>
bool mimicpp::util::StaticString< Char, length >::operator== ( String const & other) const
inlinenodiscardconstexprnoexcept
Here is the call graph for this function:

◆ size()

template<typename Char, std::size_t length>
constexpr std::size_t mimicpp::util::StaticString< Char, length >::size ( )
inlinestaticnodiscardconstexprnoexcept
Here is the caller graph for this function:

◆ str()

template<typename Char, std::size_t length>
std::basic_string< Char > mimicpp::util::StaticString< Char, length >::str ( ) const
inlinenodiscardconstexprnoexcept
Here is the call graph for this function:

◆ view()

template<typename Char, std::size_t length>
std::basic_string_view< Char > mimicpp::util::StaticString< Char, length >::view ( ) const
inlinenodiscardconstexprnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==

template<typename Char, std::size_t length>
bool operator== ( StaticString< Char, length > const & ,
StaticString< Char, length > const &  )
friend

Member Data Documentation

◆ data

template<typename Char, std::size_t length>
std::array<Char, length + 1u> mimicpp::util::StaticString< Char, length >::data

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