STD::GREATER_EQUAL(3cxx)
π¦ std::greater_equal< _Tp > β the manual page, but make it make sense
okay bestie, so this is a <functional> girlie from libstdc++, page std::greater_equal< _Tp >(3cxx), and she is β and I cannot stress this enough β literally one of the comparison functors. that's her whole thing. that's the vibe. π
β¨ NAME β¨
std::greater_equal< _Tp > β One of the comparison functors. no cap, that's the official description and honestly she ate with that one-liner.
πΈ SYNOPSIS πΈ
pull her in like this:
#include <functional>
and she Inherits std::binary_function< _Tp, _Tp, bool > π
(yes, inherit β she's got generational wealth of the functor kind).
π Public Types π
the typedefs, and bestie there are three of them:
typedef _Tp first_argument_typeβfirst_argument_typeis the type of the first argument β¨typedef bool result_typeβresult_typeis the return type π«Άtypedef _Tp second_argument_typeβsecond_argument_typeis the type of the second argument π
like. the names are the documentation. iconic honestly.
π§ Public Member Functions π§
constexpr bool operator() (const _Tp &__x, const _Tp &__y) constβ this is THE moment, the main character of the whole struct, the one and only member function π
π Detailed Description π
so the declaration in full, no cuts no edits:
template<typename _Tp>
struct std::greater_equal< _Tp >
and the description, verbatim energy: "One of the comparison functors." π₯ she's not trying to be mysterious, she's just built different (as in, built to compare two _Tps and tell you if the first is greater than or equal to the second β okay no, that last part is me vibing, the manpage just says comparison functor, so like, stay tuned, iykyk π).
β Member Typedef Documentation β
okay so these all come in with the [inherited] tag, which means they're lowkey nepo babies from std::binary_function< _Tp , _Tp , bool > β but they still slay:
typedef _Tp std::binary_function< _Tp , _Tp , bool >::first_argument_typeβ [inherited] βfirst_argument_typeis the type of the first argument πtypedef bool std::binary_function< _Tp , _Tp , bool >::result_typeβ [inherited] βresult_typeis the return type β¨typedef _Tp std::binary_function< _Tp , _Tp , bool >::second_argument_typeβ [inherited] βsecond_argument_typeis the type of the second argument π¦
π· Author π·
Generated automatically by Doxygen for libstdc++ from the source code. β yes bestie, a machine wrote this, no human hands touched it, and it still gave us all this π
okay that's the whole page, go forth and compare things π mwah π«Ά
β with love, from libstdc++, on the page std::greater_equal< _Tp >(3cxx), brought to you by the good people at (3cxx) ππ
π¦ 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