STD::POINTER_TO_BINARY_FUNCTION(3cxx)

πŸ’– NAME πŸ’–

okay so bestie, welcome to the std::pointer_to_binary_function< _Arg1, _Arg2, _Result > page from the (3cxx) manual β€” yes, the title is giving β€œtemplate final boss,” but we’re gonna get through it together. πŸ’…

std::pointer_to_binary_function< _Arg1, _Arg2, _Result > is literally One of the adaptors for function pointers. that’s the name, no cap.


✨ SYNOPSIS ✨

#include <functional>

Inherits std::binary_function< _Arg1, _Arg2, _Result >.

🌸 Public Types 🌸

  • typedef _Arg1 first_argument_type β€” first_argument_type is the type of the first argument. iconic behavior, honestly.
  • typedef _Result result_type β€” result_type is the return type. she returns, therefore she is.
  • typedef _Arg2 second_argument_type β€” second_argument_type is the type of the second argument. second but never second-best. ✨

πŸ’… Public Member Functions πŸ’…

  • pointer_to_binary_function (_Result(*__x)(_Arg1, _Arg2)) β€” public member function, typed exactly like this. long name, immaculate vibe.
  • _Result operator() (_Arg1 __x, _Arg2 __y) const β€” the other public member function, same energy, exact signature. periodt.

πŸ›‘οΈ Protected Attributes πŸ›‘οΈ

  • _Result(* _M_ptr )(_Arg1, _Arg2) β€” the protected attribute, exactly as written. it’s giving mysterious internal member, and we respect her privacy. 🫢

πŸ’œ Detailed Description πŸ’œ

template<typename _Arg1, typename _Arg2, typename _Result>
    class std::pointer_to_binary_function< _Arg1, _Arg2, _Result >"One of
    the adaptors for function pointers.

yep, that’s the detailed description: One of the adaptors for function pointers. the stray quote is in the original text and we are leaving it exactly where it is β€” preserve the lore, bestie. 🫢


🌈 Member Typedef Documentation 🌈

πŸŽ€ first_argument_type

template<typename _Arg1 , typename _Arg2 , typename _Result > typedef _Arg1 std::binary_function< _Arg1, _Arg2, _Result >::first_argument_type [inherited]

first_argument_type is the type of the first argument. also: [inherited], because she comes from std::binary_function< _Arg1, _Arg2, _Result >. iykyk. ✨

πŸŽ€ result_type

template<typename _Arg1 , typename _Arg2 , typename _Result > typedef _Result std::binary_function< _Arg1, _Arg2, _Result >::result_type [inherited]

result_type is the return type. inherited too, of course. πŸ’–

πŸŽ€ second_argument_type

template<typename _Arg1 , typename _Arg2 , typename _Result > typedef _Arg2 std::binary_function< _Arg1, _Arg2, _Result >::second_argument_type [inherited]

second_argument_type is the type of the second argument. inherited, periodt. πŸ’…


πŸ¦‹ Author πŸ¦‹

Generated automatically by Doxygen for libstdc++ from the source code.


cute sign-off: source/version is libstdc++, generated automatically by Doxygen for libstdc++ from the source code; footer tag: libststd::pointer_to...Arg2, _Result >(3cxx); date: not shown on this page, so no cap, we are not inventing one. mwah πŸ’‹

πŸ“¦ where this page comes from