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_type is the type of the first argument ✨
  • typedef bool result_type β€” result_type is the return type 🫢
  • typedef _Tp second_argument_type β€” second_argument_type is 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_type is the type of the first argument πŸ’–
  • typedef bool std::binary_function< _Tp , _Tp , bool >::result_type β€” [inherited] β€” result_type is the return type ✨
  • typedef _Tp std::binary_function< _Tp , _Tp , bool >::second_argument_type β€” [inherited] β€” second_argument_type is 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