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_type is the type of the first argument. iykyk.
  • typedef bool result_type β€” result_type is the return type. it's giving bool, obviously.
  • typedef _Predicate::second_argument_type second_argument_type β€” second_argument_type is 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 __x and __y, returns bool, and it's const. 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_type is 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_type is the return type. still bool. 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_type is the type of the second argument. and that's the set. no missing details, bestie. 🧚
ngl, everything here is inherited from std::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