STD::LESS(3cxx)
π std::less< _Tp > β one of the comparison functors (manual section 3cxx, bestie)
okay so you found the std::less< _Tp > page and you're like "why is this so short" β because it's literally just the vibes of "less than" wrapped in a functor, and honestly? iconic. this is a C++ manpage from section 3cxx, and we're gonna walk it together. π«Ά
β¨ NAME β¨
std::less< _Tp > β one of the comparison functors π
like, that's it. that's the whole personality. it compares two things and tells you if the first one is less. no cap.
πΈ SYNOPSIS πΈ
#include <functional>
Inherits std::binary_function< _Tp, _Tp, bool >.
Inherited by __gnu_parallel::_Less< _Tp, _Tp >.
so yeah she's a middle child in the inheritance tree β she's got a parent and she's got a kid. main character energy honestly π
π Public Types π
typedef _Tp first_argument_typeβfirst_argument_typeis the type of the first argument β¨typedef bool result_typeβresult_typeis the return type, and yes it'sbool, obviously, she's not out here returning vibes πtypedef _Tp second_argument_typeβsecond_argument_typeis the type of the second argument π¦
π¦ Public Member Functions π¦
constexpr bool operator() (const _Tp &__x, const _Tp &__y) constβ the whole entire point of her existence, lowkey
π Detailed Description π
template<typename _Tp>
struct std::less< _Tp >
"One of the comparison functors." β that's the official quote, straight from the source, quotation mark and all. short! sweet! to the point! she said what she said π
β Member Typedef Documentation β
these three are all marked [inherited] from std::binary_function< _Tp , _Tp , bool > β so she got them from her parent, she didn't invent them, but she's still serving π
typedef _Tp std::binary_function< _Tp , _Tp , bool >::first_argument_typeβ [inherited] βfirst_argument_typeis the type of the first argumenttypedef bool std::binary_function< _Tp , _Tp , bool >::result_typeβ [inherited] βresult_typeis the return typetypedef _Tp std::binary_function< _Tp , _Tp , bool >::second_argument_typeβ [inherited] βsecond_argument_typeis the type of the second argument
π§ friendly reminder that all three say [inherited] β if you're trying to find these typedefs insidestd::lessitself, they're not there, they're up at thestd::binary_functionlevel. iykyk
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so nobody actually wrote this by hand β the robots did it β and honestly they ate π€β¨
okay bestie that's the whole page, go forth and compare things π
β with love, your girl, signing off π
libstdc++ Β· the std::less< _Tp >(3cxx) page Β· and that's a wrap, periodt π
π¦ 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