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_typeis the type of the first argument. No cap, that's the whole job π«Άtypedef _Ret result_typeβresult_typeis the return type. It's the main character of the return value, periodt πtypedef _Arg second_argument_typeβsecond_argument_typeis 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 aconst _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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms