conststr 0.2.1
Loading...
Searching...
No Matches
Functions
conststr::literal Namespace Reference

Define string literal suffix. More...

Functions

consteval auto operator""_cs (char ch)
 User-defined string literal with suffix _cs. More...
 
consteval auto operator""_cs (char8_t ch)
 User-defined string literal with suffix _cs. More...
 
consteval auto operator""_cs (char16_t ch)
 User-defined string literal with suffix _cs. More...
 
consteval auto operator""_cs (char32_t ch)
 User-defined string literal with suffix _cs. More...
 
consteval auto operator""_cs (wchar_t ch)
 User-defined string literal with suffix _cs. More...
 
template<cstr str>
consteval auto operator""_cs ()
 User-defined string literal with suffix _cs. More...
 

Detailed Description

Define string literal suffix.

Function Documentation

◆ operator""_cs() [1/6]

template<cstr str>
consteval auto conststr::literal::operator""_cs ( )

User-defined string literal with suffix _cs.

Simply using this namespace to create cstr through "blabla"_cs.

◆ operator""_cs() [2/6]

consteval auto conststr::literal::operator""_cs ( char  ch)

User-defined string literal with suffix _cs.

Simply using this namespace to create cstr through ‘'a’_cs`.

◆ operator""_cs() [3/6]

consteval auto conststr::literal::operator""_cs ( char16_t  ch)

User-defined string literal with suffix _cs.

Simply using this namespace to create cstr through ‘u'a’_cs`.

◆ operator""_cs() [4/6]

consteval auto conststr::literal::operator""_cs ( char32_t  ch)

User-defined string literal with suffix _cs.

Simply using this namespace to create cstr through ‘U'a’_cs`.

◆ operator""_cs() [5/6]

consteval auto conststr::literal::operator""_cs ( char8_t  ch)

User-defined string literal with suffix _cs.

Simply using this namespace to create cstr through ‘u8'a’_cs`.

◆ operator""_cs() [6/6]

consteval auto conststr::literal::operator""_cs ( wchar_t  ch)

User-defined string literal with suffix _cs.

Simply using this namespace to create cstr through ‘L'a’_cs`.