__GNU_PARALLEL::_EQUALFROMLESS(3cxx)
π NAME π
ok so bestie, gather round β this is __gnu_parallel::_EqualFromLess< _T1, _T2, _Compare >, and its whole personality is: constructs a predicate for equality from a strict weak ordering predicate. yeah. it takes a "less than" vibe and turns it into an "equal to" vibe. iconique. β¨
(it lives in the __gnu_parallel namespace, and the manual this page belongs to is libstdc++ β keep that in your back pocket, we'll circle back at the end π«Ά)
β¨ SYNOPSIS β¨
#include <base.h>
Inherits std::binary_function< _T1, _T2, bool >. so it's literally in the binary_function family, no cap π
π Public Types π
typedef _T1 first_argument_typeβfirst_argument_typeis the type of the first argument. yes bestie, it's giving exactly what it says on the tin.typedef bool result_typeβresult_typeis the return type. and that return type isbool, obviously. πtypedef _T2 second_argument_typeβsecond_argument_typeis the type of the second argument. the sequel. the encore. the second one. π
πΈ Public Member Functions πΈ
_EqualFromLess (_Compare &__comp)β the constructor, and it takes a reference to your_Compare(__comp) so it can hold onto the strict-weak-ordering situation.bool operator() (const _T1 &__a, const _T2 &__b)β the actual call operator. you hand it__aand__band it gives you back abool. this is the main character of the whole class ngl π
π¦ Detailed Description π¦
template<typename _T1, typename _T2, typename _Compare>
class __gnu_parallel::_EqualFromLess< _T1, _T2, _Compare >
ok so the full declaration is that. and the class's quoted description is, verbatim, "Constructs predicate for equality from strict weak ordering predicate." like β it's a wrapper, it takes your ordering thing and re-serves it as an equality thing. slay. π
heads up bestie: strict weak ordering is the whole deal here. this class builds equality out of it, so what "equal" even means is downstream of whatever your _Compare considers "less". that's the fact fr fr, don't come for me.
β Member Typedef Documentation β
π typedef _T1 std::binary_function< _T1 , _T2 , bool >::first_argument_type
[inherited] β first_argument_type is the type of the first argument. inherited from the std::binary_function< _T1, _T2, bool > parent, so it's not even doing its own work here, it's just vibing with the family's definition. π
π typedef bool std::binary_function< _T1 , _T2 , bool >::result_type
[inherited] β result_type is the return type. also inherited. also just bool. also just vibing. π«Ά
π typedef _T2 std::binary_function< _T1 , _T2 , bool >::second_argument_type
[inherited] β second_argument_type is the type of the second argument. third of three, all inherited, all accounted for. we love a complete set. β¨
π Author π
generated automatically by Doxygen for libstdc++ from the source code. so likeβ¦ nobody hand-wrote this, it's a machine's magnum opus, and honestly? it ate. π
ok that's the whole page bestie, no skipped sections, no missing options, we kept every single crumb π and yeah β this lil' page is __gnu_parallel::_EqualFromLess< _T1, _T2, _Compare >(3cxx) from the libstdc++ manual, generated by Doxygen from the source code, and the footer doesn't hand us a date so I'm not gonna invent one for you π β k bye, go build something, periodt. πβ¨π
π¦ 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