std::rel_ops(3cxx)
okay so you're on the std::rel_ops(3cxx) page from libstdc++, and we're gonna get into it, bestie. π
π NAME π
std::rel_ops β The generated relational operators are sequestered here. No cap. π«Ά
β¨ SYNOPSIS β¨
π§ Functions π§
template<class _Tp > bool operator!= (const _Tp &__x, const _Tp &__y)
template<class _Tp > bool operator<= (const _Tp &__x, const _Tp &__y)
template<class _Tp > bool operator> (const _Tp &__x, const _Tp &__y)
template<class _Tp > bool operator>= (const _Tp &__x, const _Tp &__y)
operator!=β Defines!=for arbitrary types, in terms of==.operator<=β Defines<=for arbitrary types, in terms of<.operator>β Defines>for arbitrary types, in terms of<.operator>=β Defines>=for arbitrary types, in terms of<.
π¦ Detailed Description π¦
The generated relational operators are sequestered here. πΈ
Libstdc++ headers must not use the contents of rel_ops. User code should also avoid them, because unconstrained function templates are too greedy and can easily cause ambiguities. Like, they will absolutely start drama. π
C++20 default comparisons are a better solution. periodt. β
π Function Documentation π
π template<class _Tp > bool std::rel_ops::operator!= (const _Tp & __x, const _Tp & __y) [inline] π
Defines != for arbitrary types, in terms of ==.
Parameters
__xβ A thing.__yβ Another thing.
Returns __x != __y
This function uses == to determine its result. π
π template<class _Tp > bool std::rel_ops::operator<= (const _Tp & __x, const _Tp & __y) [inline] π
Defines <= for arbitrary types, in terms of <.
Parameters
__xβ A thing.__yβ Another thing.
Returns __x <= __y
This function uses < to determine its result. π¦
π template<class _Tp > bool std::rel_ops::operator> (const _Tp & __x, const _Tp & __y) [inline] π
Defines > for arbitrary types, in terms of <.
Parameters
__xβ A thing.__yβ Another thing.
Returns __x > __y
This function uses < to determine its result. π
π template<class _Tp > bool std::rel_ops::operator>= (const _Tp & __x, const _Tp & __y) [inline] π
Defines >= for arbitrary types, in terms of <.
Parameters
__xβ A thing.__yβ Another thing.
Returns __x >= __y
This function uses < to determine its result. β
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. π€
xoxo, your Unix bestie π β footer tea: source/version is libstdc++ / std::rel_ops(3cxx), and the date isn't printed on this page, so I'm not inventing one. π«Ά
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms