STD::MEM_FUN1_REF_T(3cxx)

🌸 NAME 🌸

Okay bestie, meet std::mem_fun1_ref_t< _Ret, _Tp, _Arg > β€” one of the adaptors for member pointers. This is the 3cxx manual page, and the class name is a whole mouthful, but we’re handling it. πŸ’…


✨ SYNOPSIS ✨

First things first, you gotta bring in <functional>:

#include <functional>

Then the inheritance tea: it inherits std::binary_function< _Tp, _Arg, _Ret >. Periodt.

🫢 Public Types 🫢

  • typedef _Tp first_argument_type β€” first_argument_type is the type of the first argument. iconic.
  • typedef _Ret result_type β€” result_type is the return type. slay.
  • typedef _Arg second_argument_type β€” second_argument_type is the type of the second argument. periodt.

πŸŽ€ Public Member Functions πŸŽ€

  • mem_fun1_ref_t (_Ret(_Tp::*__pf)(_Arg)) β€” that’s the exact signature, bestie. no cap.
  • _Ret operator() (_Tp &__r, _Arg __x) const β€” the call operator signature, exactly as written. πŸ¦‹

πŸ’« Detailed Description πŸ’«

Template realness:

template<typename _Ret, typename _Tp, typename _Arg>
class std::mem_fun1_ref_t< _Ret, _Tp, _Arg >

And the detailed description is literally: β€œOne of the adaptors for member pointers.” πŸ’–


🧚 Member Typedef Documentation 🧚

These are all inherited from std::binary_function< _Tp , _Arg , _Ret >, and the [inherited] tag is part of the official vibe. πŸ’œ

  • typedef _Tp std::binary_function< _Tp , _Arg , _Ret >::first_argument_type [inherited] β€” first_argument_type is the type of the first argument.
  • typedef _Ret std::binary_function< _Tp , _Arg , _Ret >::result_type [inherited] β€” result_type is the return type.
  • typedef _Arg std::binary_function< _Tp , _Arg , _Ret >::second_argument_type [inherited] β€” second_argument_type is the type of the second argument.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. Doxygen ate and left no crumbs. ✨

okay bestie, final sign-off: source/version libstdc++, manual std::mem_fun1_ref_t< _Ret, _Tp, _Arg >(3cxx), and the date is not printed on this page β€” no invented dates, periodt. Bye! πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from