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_type is the type of the argument. Obsessed with this clarity.
  • typedef _Result result_type β€” result_type is 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's const. 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