__GNU_PARALLEL::_LESS(3cxx)
π __gnu_parallel::_Less< _T1, _T2 > β¨
okay so this is a page from the 3cxx manual, bestie β it's the docs for a lil struct in libstdc++ called __gnu_parallel::_Less. Let's get into it π«Ά
πΈ NAME πΈ
__gnu_parallel::_Less< _T1, _T2 > β literally does the same job as std::less, except it's not weird about it and lets your two types be different. iconic behaviour, no cap π
β¨ SYNOPSIS β¨
#include <base.h>
It inherits from std::binary_function< _T1, _T2, bool >. yes, that's the parent, we love a legacy bloodline π
π Public Types π
typedef _T1 first_argument_typeβ the type of the first argument, exactly what it says on the tin πtypedef bool result_typeβ the return type. spoiler: it's aboolπtypedef _T2 second_argument_typeβ the type of the second argument, and yes, it's allowed to be a whole different type from the first one. that's the whole point, iykyk π
π¦ Public Member Functions π¦
bool operator() (const _T1 &__t1, const _T2 &__t2) constβ call it with a_T1and then a_T2π«Άbool operator() (const _T2 &__t2, const _T1 &__t1) constβ or flip the order and call it with a_T2first and a_T1second. both directions, we contain multitudes β¨
π Detailed Description π
template<typename _T1, typename _T2>
struct __gnu_parallel::_Less< _T1, _T2 >
"Similar to std::less, but allows two different types."
that's the quote, that's the vibe. two template params, one comparison, zero drama πΈ
π Member Typedef Documentation π
all three of these are [inherited], so they're coming straight from std::binary_function< _T1 , _T2 , bool > β shoutout to the parent struct for the genetics π§¬
typedef _T1 std::binary_function< _T1 , _T2 , bool >::first_argument_type[inherited]β first_argument_type is the type of the first argument, fr fr πtypedef bool std::binary_function< _T1 , _T2 , bool >::result_type[inherited]β result_type is the return type. it'sbool. that's the whole lore πtypedef _T2 std::binary_function< _T1 , _T2 , bool >::second_argument_type[inherited]β second_argument_type is the type of the second argument, and she can be a totally different type than the first one π¦
β Author β
Generated automatically by Doxygen for libstdc++ from the source code. so nobody wrote this by hand, it's a robot's art π¨π
okay that's the page!! π and for the sign-off β this one's from libstdc++, living in the 3cxx manual, and ngl the footer line got chopped mid-word (libstβ¦, truly a moment π) so i can't give you a clean date, but it's the __gnu_parallel::_Less< _T1, _T2 >(3cxx) footer through and through. mwah πβ¨
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms