STD::BINDER1ST(3cxx)

🌸 std::binder1st< _Operation > 🌸

okay so bestie, you opened the 3cxx manual page for std::binder1st< _Operation >, and we are gonna get into it. No cap, this one is kinda short but every little typedef matters. πŸ’…


πŸ’– NAME πŸ’–

std::binder1st< _Operation > β€” one of the binder functors. That's the whole name, and honestly? It ate. ✨

✨ SYNOPSIS ✨

#include <functional>

and it inherits this exact thing, bestie:

Inherits std::unary_function< _Operation::second_argument_type,
       _Operation::result_type >.

🌈 Public Types 🌈

  • typedef _Operation::second_argument_type argument_type β€” argument_type is the type of the argument. slay, that's literally the argument's type. πŸ’–
  • typedef _Operation::result_type result_type β€” result_type is the return type. yup, that's what comes back out. πŸŽ€

🧚 Public Member Functions 🧚

  • binder1st (const _Operation &__x, const typename _Operation::first_argument_type &__y) β€” the binder1st member function, taking those exact parameters. 🫢
  • _Operation::result_type operator() (const typename _Operation::second_argument_type &__x) const β€” the const call operator overload, returning _Operation::result_type. ⭐
  • _Operation::result_type operator() (typename _Operation::second_argument_type &__x) const β€” the other call operator overload, with typename _Operation::second_argument_type &__x, and it also returns _Operation::result_type. πŸ”₯

πŸ“ Protected Attributes πŸ“

  • _Operation op
  • _Operation::first_argument_type value

🌟 Detailed Description 🌟

this is the exact template/class line, bestie:

   template<typename _Operation>
       class std::binder1st< _Operation >"One of the binder functors.

πŸ¦‹ Member Typedef Documentation πŸ¦‹

  • typedef _Operation::second_argument_type std::unary_function< _Operation::second_argument_type , _Operation::result_type >::argument_type [inherited] β€” argument_type is the type of the argument. inherited from that std::unary_function situation, periodt. πŸ’œ
  • typedef _Operation::result_type std::unary_function< _Operation::second_argument_type , _Operation::result_type >::result_type [inherited] β€” result_type is the return type. also inherited, and also iconic. 🌸

πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for libstdc++ from the source code. so no human author to @ here β€” Doxygen did that, fr fr. 😭


mwah πŸ’‹ this page is from libstdc++, and the manual page is std::binder1st< _Operation >(3cxx). the footer does not give me a date, so i am not gonna invent one β€” no cap. 🫢

πŸ“¦ where this page comes from