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'sconstexpr, returnsbool, takes twoconst _Tp &args called__xand__y, and it'sconst. 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_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. 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
- 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