STD::CONST_MEM_FUN1_REF_T(3cxx)

πŸ’… NAME πŸ’…

std::const_mem_fun1_ref_t< _Ret, _Tp, _Arg > β€” bestie, it's literally one of the adaptors for member pointers. That's the whole vibe. ✨

(This is from the std::const_mem_fun1_ref_t< _Ret, _Tp, _Arg >(3cxx) manual page, section 3cxx, so you know exactly where you are πŸŽ€)


🌸 SYNOPSIS 🌸

#include <functional>

Inherits std::binary_function< _Tp, _Arg, _Ret >. Yes, it's giving "I have a whole family tree," and we're about to meet the relatives πŸ‘‘

✨ Public Types ✨

  • typedef _Tp first_argument_type β€” first_argument_type is the type of the first argument. No cap, that's the whole job 🫢
  • typedef _Ret result_type β€” result_type is the return type. It's the main character of the return value, periodt πŸ’–
  • typedef _Arg second_argument_type β€” second_argument_type is the type of the second argument. Second but never forgotten πŸ¦‹

πŸŽ€ Public Member Functions πŸŽ€

  • const_mem_fun1_ref_t (_Ret(_Tp::*__pf)(_Arg) const) β€” the constructor. It takes a pointer to a const member function, lowkey iconic 🧚
  • _Ret operator() (const _Tp &__r, _Arg __x) const β€” the call operator. Give it a const _Tp & and an _Arg, get back an _Ret. Slay πŸ”₯

πŸ’œ Detailed Description πŸ’œ

template<typename _Ret, typename _Tp, typename _Arg>
    class std::const_mem_fun1_ref_t< _Ret, _Tp, _Arg >"One of the adaptors
    for member pointers.

So yeah β€” template with _Ret, _Tp and _Arg, and the class is std::const_mem_fun1_ref_t< _Ret, _Tp, _Arg >, described as "One of the adaptors for member pointers." (That stray quote mark? Not me, bestie β€” I'm keeping it exactly as the source has it πŸ™ˆ. Facts are facts.)


🌈 Member Typedef Documentation 🌈

These three are all inherited from std::binary_function< _Tp , _Arg , _Ret >, so they're the nepo babies of the class and honestly? They earned it πŸ‘‘

⭐ typedef _Tp std::binary_function< _Tp , _Arg , _Ret >::first_argument_type

[inherited]

first_argument_type is the type of the first argument. Short, sweet, does exactly what it says on the tin πŸ’…

⭐ typedef _Ret std::binary_function< _Tp , _Arg , _Ret >::result_type

[inherited]

result_type is the return type. The moment the function hands you your result back, we stan πŸ“

⭐ typedef _Arg std::binary_function< _Tp , _Arg , _Ret >::second_argument_type

[inherited]

second_argument_type is the type of the second argument. The supporting role that absolutely ate 🌸


πŸ¦‹ Author πŸ¦‹

Generated automatically by Doxygen for libstdc++ from the source code. Not a human author, just Doxygen doing Doxygen things β€” it's giving "I was made by the machine" πŸ’€βœ¨


Heads up bestie: doxygen-generated docs mean the structure is auto-built from source. Read the code, not just the paperwork, and you're golden 🫢

Okay that's the whole page! It came from libstdc++ (the source/version behind this fine manual), section 3cxx, and it's the std::const_mem_fun1_ref_t< _Ret, _Tp, _Arg > man page β€” go forth and adapt those member pointers, icon πŸ‘‘πŸ’–πŸŽ€

πŸ“¦ where this page comes from