#include <string_literal.h>
|
| constexpr | string_literal (void) |
| | Empty string.
|
| |
| constexpr | string_literal (const char(&str)[N]) |
| | constructor
|
| |
template<size_t S, size_t LEN = N-1>
requires (S+LEN < N) |
| constexpr auto | substr (void) const |
| | get substring
|
| |
| constexpr | operator const char * (void) const |
| | cast to C string
|
| |
|
| constexpr const char * | begin (void) const |
| |
| constexpr const char * | end (void) const |
| |
|
| static constexpr size_t | size = N |
| | Number of chars in the string_literal.
|
| |
| static constexpr bool | empty = (N==1) |
| | true is empty (i.e., == '\0')
|
| |
◆ string_literal() [1/2]
◆ string_literal() [2/2]
◆ begin()
| constexpr const char * begin |
( |
void |
| ) |
const |
|
inlineconstexpr |
◆ end()
| constexpr const char * end |
( |
void |
| ) |
const |
|
inlineconstexpr |
◆ operator const char *()
| constexpr operator const char * |
( |
void |
| ) |
const |
|
inlineconstexpr |
◆ operator+() [1/2]
| constexpr auto operator+ |
( |
const char(&) |
str[M] | ) |
const |
|
inlineconstexpr |
◆ operator+() [2/2]
◆ operator<() [1/2]
| constexpr bool operator< |
( |
const char(&) |
str[M] | ) |
const |
|
inlineconstexpr |
◆ operator<() [2/2]
◆ operator==() [1/2]
| constexpr bool operator== |
( |
const char(&) |
str[M] | ) |
const |
|
inlineconstexpr |
◆ operator==() [2/2]
◆ substr()
| constexpr auto substr |
( |
void |
| ) |
const |
|
inlineconstexpr |
◆ operator+
| constexpr auto operator+ |
( |
const char(&) |
str[M], |
|
|
string_literal< N > |
lit |
|
) |
| |
|
friend |
◆ operator<
| constexpr bool operator< |
( |
const char(&) |
str[M], |
|
|
string_literal< N > |
lit |
|
) |
| |
|
friend |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & |
s, |
|
|
const string_literal< N > & |
str |
|
) |
| |
|
friend |
forward 'value' to stream
◆ operator==
| constexpr bool operator== |
( |
const char(&) |
str[M], |
|
|
string_literal< N > |
lit |
|
) |
| |
|
friend |
◆ empty
| constexpr bool empty = (N==1) |
|
staticconstexpr |
true is empty (i.e., == '\0')
◆ size
| constexpr size_t size = N |
|
staticconstexpr |
◆ value
The documentation for this struct was generated from the following file: