DiFfRG
Loading...
Searching...
No Matches
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 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 >

A fixed size compile-time string.

Template Parameters
NThe size of the string.

Constructor & Destructor Documentation

◆ FixedString()

template<unsigned N>
DiFfRG::FixedString< N >::FixedString ( char const * s)
inlineconstexpr

Construct a new Fixed String object.

Parameters
sThe string to be copied.
Note
The string must be of size N.

Member Function Documentation

◆ operator char const *()

template<unsigned N>
DiFfRG::FixedString< N >::operator char const * ( ) const
inlineconstexpr

◆ operator<=>()

template<unsigned N>
auto DiFfRG::FixedString< N >::operator<=> ( const FixedString< N > & ) const
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: