STD::POINTER_TO_UNARY_FUNCTION(3cxx)
π NAME π
Okay bestie, this is the page for std::pointer_to_unary_function< _Arg, _Result > from the 3cxx manual β literally one of the adaptors for function pointers. That's the whole name vibe. Slay.
β¨ SYNOPSIS β¨
#include <functional>
Also, it inherits std::unary_function< _Arg, _Result >. Periodt.
π Public Types π
typedef _Arg argument_typeβargument_typeis the type of the argument. Obsessed with this clarity.typedef _Result result_typeβresult_typeis the return type. No cap.
π Public Member Functions π
pointer_to_unary_function (_Result(*__x)(_Arg))β this is the public member function with that exact signature: it takes_Result(*__x)(_Arg). Literally in the page._Result operator() (_Arg __x) constβ the call operator, exactly: returns_Result, takes_Arg __x, and it'sconst. Iconic.
π«Ά Protected Attributes π«Ά
_Result(* _M_ptr )(_Arg)β the protected attribute, exactly as written. Protected, so don't touch, bestie.
π¦ Detailed Description π¦
Here's the detailed description exactly as it appears β template and all:
template<typename _Arg, typename _Result>
class std::pointer_to_unary_function< _Arg, _Result >"One of the adaptors for function pointers.
Yes, that stray " before One is literally there. It's giving "one of the adaptors for function pointers" energy, periodt.
π Member Typedef Documentation π
argument_type
template<typename _Arg , typename _Result > typedef _Arg
std::unary_function< _Arg, _Result >::argument_type [inherited]
argument_type is the type of the argument. Inherited, bestie.
result_type
template<typename _Arg , typename _Result > typedef _Result
std::unary_function< _Arg, _Result >::result_type [inherited]
result_type is the return type. Also inherited. Slay.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
Source/version: libstdc++, generated by Doxygen from the source code. Date: not listed β the footer just says libstdstd::pointer_t..._Arg, _Result >(3cxx), no date in sight, bestie. Byeee! πβ¨
π¦ 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