sculpto
Public Member Functions | Public Attributes | List of all members
scl::fixed_string< N > Struct Template Reference

#include <fixed_string.h>

Public Member Functions

constexpr fixed_string ()=default
 
constexpr fixed_string (const char(&Str)[N+1])
 

Public Attributes

char value [N+1] {}
 

Detailed Description

template<size_t N>
struct scl::fixed_string< N >

Fixed length string class.

Definition at line 16 of file fixed_string.h.

Constructor & Destructor Documentation

◆ fixed_string() [1/2]

template<size_t N>
constexpr scl::fixed_string< N >::fixed_string ( )
constexprdefault

Fiexed string default constructor.

◆ fixed_string() [2/2]

template<size_t N>
constexpr scl::fixed_string< N >::fixed_string ( const char(&)  Str[N+1])
inlineconstexpr
  • Fixed string constructor bt char array.
Parameters
Str- char array.

Definition at line 29 of file fixed_string.h.

30 {
31 std::copy_n(value, N + 1, Str);
32 }

Member Data Documentation

◆ value

template<size_t N>
char scl::fixed_string< N >::value[N+1] {}

String characters array.

Definition at line 19 of file fixed_string.h.


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