rapidyaml 0.14.0
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
create substrings from a char literal

Functions

template<size_t N>
substr c4::to_substr (char(&s)[N]) noexcept
template<size_t N>
csubstr c4::to_csubstr (const char(&s)[N]) noexcept

Detailed Description

Function Documentation

◆ to_substr()

template<size_t N>
substr c4::to_substr ( char(&) s[N])
inlinenoexcept

Definition at line 2377 of file substr.hpp.

2378{
2379 return substr(s, N-1);
2380}
basic_substring< char > substr
a mutable string view
Definition substr.hpp:2356

◆ to_csubstr()

template<size_t N>
csubstr c4::to_csubstr ( const char(&) s[N])
inlinenoexcept

Definition at line 2381 of file substr.hpp.

2382{
2383 return csubstr(s, N-1);
2384}
basic_substring< const char > csubstr
an immutable string view
Definition substr.hpp:2357