KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches
kumi::str< N > Class Template Reference

Static string used to create named fields. More...

#include <kumi/utils/str.hpp>

Detailed Description

template<std::size_t N>
class kumi::str< N >

Static string used to create named fields.

Template Parameters
NNumber of characters in the string (the storage holds N + 1 chars, for the null terminator).
Note
the . character is reserved for internal manipulation.

kumi::str provides a way to define compile time names. A literal "abc" is deduced as kumi::str<3>. Member functions taking another string accept a character array (char const (&)[M], M including the terminator), so they work with literals as well as with other.data_.