STD::GREATER(3cxx)

okay so bestie, welcome to the std::greater< _Tp > page from the 3cxx manual β€” it's giving ✨ comparison functor ✨ and I'm obsessed.

πŸ’– NAME πŸ’–

std::greater< _Tp > β€” one of the comparison functors. periodt.

🌸 SYNOPSIS 🌸

#include <functional>

It inherits from std::binary_function< _Tp, _Tp, bool >. no cap.

πŸ¦‹ Public Types πŸ¦‹

  • typedef _Tp first_argument_type β€” literally the type of the first argument.
  • typedef bool result_type β€” the return type, bestie.
  • typedef _Tp second_argument_type β€” the type of the second argument, slay.

πŸŽ€ Public Member Functions πŸŽ€

  • constexpr bool operator() (const _Tp &__x, const _Tp &__y) const β€” this is the main character: it's constexpr, returns bool, takes two const _Tp & args called __x and __y, and it's const. iykyk.

✨ Detailed Description ✨

template<typename _Tp>
    struct std::greater< _Tp >"One of the comparison functors.

that's the whole vibe β€” a template struct that's one of the comparison functors. yes the quote mark is canon, don't @ me 😭

πŸ’… Member Typedef Documentation πŸ’…

  • 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. so yeah, the robots did this one πŸ’€


k bye bestie 🫢 β€” this page is from libstdc++ and it's the std::greater< _Tp >(3cxx) manual. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from