STD::BINARY_NEGATE(3cxx)
π std::binary_negate< _Predicate > π
okay so bestie, welcome to the iconic little corner of libstdc++ where we talk about std::binary_negate< _Predicate > β literally one of the negation functors, no cap. this is from the std::binary_negate< _Predicate >(3cxx) manual, and we're gonna get into it.
β¨ NAME β¨
std::binary_negate< _Predicate > β One of the negation functors. periodt. π
πΈ SYNOPSIS πΈ
first things first, you gotta include the functional header, bestie:
#include <functional>
and listen β this class inherits from std::binary_function< _Predicate::first_argument_type, _Predicate::second_argument_type, bool >. that's the whole vibe. π«Ά
π Public Types π
typedef _Predicate::first_argument_type first_argument_typeβfirst_argument_typeis the type of the first argument. iykyk.typedef bool result_typeβresult_typeis the return type. it's givingbool, obviously.typedef _Predicate::second_argument_type second_argument_typeβsecond_argument_typeis the type of the second argument. slay.
π Public Member Functions π
constexpr binary_negate (const _Predicate &__x)β the constructor, bestie.constexpr, even. iconic.constexpr bool operator() (const typename _Predicate::first_argument_type &__x, const typename _Predicate::second_argument_type &__y) constβ the call operator. it takes__xand__y, returnsbool, and it'sconst. chef's kiss. β¨
π¦ Protected Attributes π¦
_Predicate _M_predβ the protected attribute, highkey just chilling there. that's the whole mood.
πΊ Detailed Description πΊ
okay so here's the template situation:
template<typename _Predicate>
class std::binary_negate< _Predicate >
and the description? "One of the negation functors." that's it. that's the whole detailed description. lowkey iconic how it doesn't over-explain. π
π Member Typedef Documentation π
let's break down these inherited typedefs, because they're all coming from std::binary_function< _Predicate::first_argument_type , _Predicate::second_argument_type , bool > and we're not gonna skip them:
typedef _Predicate::first_argument_type std::binary_function< _Predicate::first_argument_type , _Predicate::second_argument_type , bool >::first_argument_type [inherited]βfirst_argument_typeis the type of the first argument. yes, again. we love consistency. πtypedef bool std::binary_function< _Predicate::first_argument_type , _Predicate::second_argument_type , bool >::result_type [inherited]βresult_typeis the return type. stillbool. still slaying. πtypedef _Predicate::second_argument_type std::binary_function< _Predicate::first_argument_type , _Predicate::second_argument_type , bool >::second_argument_type [inherited]βsecond_argument_typeis the type of the second argument. and that's the set. no missing details, bestie. π§
ngl, everything here is inherited fromstd::binary_function<...>β don't forget that. the[inherited]tag is doing a lot of heavy lifting. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. no human author, just the Doxygen machine doing its thing. main character energy, honestly. π€β¨
and that's the page, bestie! π the footer says libstdstd::binary_negate< _Predicate >(3cxx) β yeah, there's a little typo in there (libstdstd), but we're keeping it 100% real. no date in sight, just vibes and libstdc++ source code. slay. π
ππ¦
π¦ 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