Ponca  eb7239a9c07e156fb1edc6faac7fe89e2b256bda
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::StringLiteral< N > Struct Template Reference

StringLiteral as template parameters. More...

#include <typeutils.h>

Collaboration diagram for Ponca::StringLiteral< N >:

Public Member Functions

constexpr StringLiteral (const char(&str)[N])

Public Attributes

char value [N]

Detailed Description

template<size_t N>
struct Ponca::StringLiteral< N >

StringLiteral as template parameters.

We use the C++20 NTTP extension to allow to template by string literals. This class will be used to provide a name to FactoryEntries

Definition at line 17 of file typeutils.h.

Constructor & Destructor Documentation

◆ StringLiteral()

template<size_t N>
Ponca::StringLiteral< N >::StringLiteral ( const char(&) str[N])
inlineconstexpr

Definition at line 20 of file typeutils.h.

Member Data Documentation

◆ value

template<size_t N>
char Ponca::StringLiteral< N >::value[N]

Definition at line 19 of file typeutils.h.