LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::literals Namespace Reference

Functions

constexpr std::string_view operator""_sv (const char *s, size_t n)
 
constexpr swoc::TextView operator""_tv (const char *s, size_t n)
 

Detailed Description

User literals for TextView.

Function Documentation

◆ operator""_sv()

std::string_view swoc::literals::operator""_sv ( const char * s,
size_t n )
constexpr

Literal constructor for std::string_view.

Parameters
sThe source string.
nSize of the source string.
Returns
A string_view

Definition at line 2088 of file TextView.h.

◆ operator""_tv()

swoc::TextView swoc::literals::operator""_tv ( const char * s,
size_t n )
constexpr

Literal constructor for swoc::TextView.

Parameters
sThe source string.
nSize of the source string.
Returns
A string_view

Definition at line 2103 of file TextView.h.