Sygaldry
Loading...
Searching...
No Matches
sygaldry::sygbp::respeller< NamedType, Mappings > Struct Template Reference

Public Member Functions

 respeller (NamedType)
 
constexpr operator const char * () noexcept
 

Static Public Attributes

static constexpr size_t N = name_length<NamedType>() + 1
 
static constexpr std::array< char, N > value
 

Member Data Documentation

◆ value

template<typename NamedType , char_mapping... Mappings>
constexpr std::array<char, N> sygaldry::sygbp::respeller< NamedType, Mappings >::value
staticconstexpr
Initial value:
= [](const char * s)
{
auto mapping = compose<Mappings...>{};
std::array<char, N> ret{};
for (size_t i = 0; i < N; ++i)
{
char c = s[i];
ret[i] = mapping(c);
}
return ret;
}(NamedType::name())

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