rapidyaml 0.14.0
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
left-compare a string literal with a csubstr

Functions

template<typename C, size_t N>
bool c4::operator== (const char(&arr)[N], basic_substring< C > const that) noexcept
template<typename C, size_t N>
bool c4::operator!= (const char(&arr)[N], basic_substring< C > const that) noexcept
template<typename C, size_t N>
bool c4::operator< (const char(&arr)[N], basic_substring< C > const that) noexcept
template<typename C, size_t N>
bool c4::operator> (const char(&arr)[N], basic_substring< C > const that) noexcept
template<typename C, size_t N>
bool c4::operator<= (const char(&arr)[N], basic_substring< C > const that) noexcept
template<typename C, size_t N>
bool c4::operator>= (const char(&arr)[N], basic_substring< C > const that) noexcept

Detailed Description

Function Documentation

◆ operator==()

template<typename C, size_t N>
bool c4::operator== ( const char(&) arr[N],
basic_substring< C > const that )
inlinenoexcept

Definition at line 2449 of file substr.hpp.

2449{ return that.compare(arr, N-1) == 0; }
int compare(C const c) const noexcept
Definition substr.hpp:385

◆ operator!=()

template<typename C, size_t N>
bool c4::operator!= ( const char(&) arr[N],
basic_substring< C > const that )
inlinenoexcept

Definition at line 2450 of file substr.hpp.

2450{ return that.compare(arr, N-1) != 0; }

◆ operator<()

template<typename C, size_t N>
bool c4::operator< ( const char(&) arr[N],
basic_substring< C > const that )
inlinenoexcept

Definition at line 2451 of file substr.hpp.

2451{ return that.compare(arr, N-1) > 0; }

◆ operator>()

template<typename C, size_t N>
bool c4::operator> ( const char(&) arr[N],
basic_substring< C > const that )
inlinenoexcept

Definition at line 2452 of file substr.hpp.

2452{ return that.compare(arr, N-1) < 0; }

◆ operator<=()

template<typename C, size_t N>
bool c4::operator<= ( const char(&) arr[N],
basic_substring< C > const that )
inlinenoexcept

Definition at line 2453 of file substr.hpp.

2453{ return that.compare(arr, N-1) >= 0; }

◆ operator>=()

template<typename C, size_t N>
bool c4::operator>= ( const char(&) arr[N],
basic_substring< C > const that )
inlinenoexcept

Definition at line 2454 of file substr.hpp.

2454{ return that.compare(arr, N-1) <= 0; }