FixedString< N > Struct Template Reference#
|
DiFfRG
|
DiFfRG::FixedString< N > Struct Template Reference
A fixed size compile-time string. More...
#include <fixed_string.hh>
Public Member Functions | |
| constexpr | FixedString (char const *s) |
| Construct a new Fixed String object. | |
| constexpr | FixedString (std::initializer_list< char > s) |
| constexpr | FixedString (char const (&arr)[N]) |
| constexpr | operator char const * () const |
| auto | operator<=> (const FixedString &) const =default |
Public Attributes | |
| char | buf [N+1] {} |
Detailed Description
template<unsigned N>
struct DiFfRG::FixedString< N >
struct DiFfRG::FixedString< N >
A fixed size compile-time string.
- Template Parameters
-
N The size of the string.
Constructor & Destructor Documentation
◆ FixedString() [1/3]
template<unsigned N>
|
inlineconstexpr |
Construct a new Fixed String object.
- Parameters
-
s The string to be copied.
- Note
- The string must be of size N.
◆ FixedString() [2/3]
template<unsigned N>
|
inlineconstexpr |
◆ FixedString() [3/3]
template<unsigned N>
|
inlineconstexpr |
Member Function Documentation
◆ operator char const *()
template<unsigned N>
|
inlineconstexpr |
◆ operator<=>()
template<unsigned N>
|
default |
Member Data Documentation
◆ buf
template<unsigned N>
| char DiFfRG::FixedString< N >::buf[N+1] {} |
The documentation for this struct was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/fixed_string.hh
Generated by