openMSX
Public Member Functions | Public Attributes | List of all members
StringLiteral< N > Struct Template Reference

#include <small_compare.hh>

Collaboration diagram for StringLiteral< N >:
Collaboration graph
[legend]

Public Member Functions

constexpr StringLiteral (const char(&str)[N])
 
constexpr size_t size () const
 
constexpr const char * data () const
 

Public Attributes

std::array< char, N - 1 > value
 

Detailed Description

template<size_t N>
struct StringLiteral< N >

Definition at line 53 of file small_compare.hh.

Constructor & Destructor Documentation

◆ StringLiteral()

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

Definition at line 54 of file small_compare.hh.

References StringLiteral< N >::value.

Member Function Documentation

◆ data()

template<size_t N>
constexpr const char * StringLiteral< N >::data ( ) const
inlineconstexpr

Definition at line 61 of file small_compare.hh.

References StringLiteral< N >::value.

◆ size()

template<size_t N>
constexpr size_t StringLiteral< N >::size ( ) const
inlineconstexpr

Definition at line 60 of file small_compare.hh.

References StringLiteral< N >::value.

Member Data Documentation

◆ value

template<size_t N>
std::array<char, N - 1> StringLiteral< N >::value

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