STD::UNARY_FUNCTION(3cxx)
π std::unary_function< _Arg, _Result > β NAME
okay so bestie, welcome to the std::unary_function< _Arg, _Result > page from the (3cxx) manual β yes the header got a little chopped in the terminal, it's giving "my name is a mystery" but we move π
This is the manpage for std::unary_function, a lil template struct in libstdc++ land. Buckle up, it's short but it's iconic. β¨
πΈ SYNOPSIS
#include <functional>
That's the whole vibe check for the include, bestie. One header, no notes. π
Inherited by std::_Identity< _Value >, std::_Select1st< pair< const _Key, _Tp > >, and std::pointer_to_unary_function< _Arg, _Result >. Like, this struct is the main character that other structs inherit from β very mother energy. π
π Public Types
typedef _Arg argument_typeβargument_typeis the type of the argument π«Άtypedef _Result result_typeβresult_typeis the return type π«Ά
Two typedefs, both slaying, both doing exactly what they say on the tin. No cap.
π₯ Detailed Description
template<typename _Arg, typename _Result>
struct std::unary_function< _Arg, _Result >
It's the "Helper for defining adaptable unary function objects." π« That's the official tagline and honestly? Ate.
β οΈ Deprecated β bestie listen to me. Deprecated in C++11, no longer in the standard since C++17. So yeah, this one is lowkey retired from the standard. Still here in libstdc++, still doing its thing, but likeβ¦ know what you're getting into. π
π¦ Member Typedef Documentation
π argument_type
template<typename _Arg , typename _Result > typedef _Arg
std::unary_function< _Arg , _Result >::argument_type
argument_type is the type of the argument π β literally the type you pass in, no guessing, no detective work required.
β result_type
template<typename _Arg , typename _Result > typedef _Result
std::unary_function< _Arg , _Result >::result_type
result_type is the return type π β the type that comes back out. In and out, that's the whole relationship fr fr. π§
π Author
Generated automatically by Doxygen for libstdc++ from the source code. So like, no human wrote this by hand β the robot did it and honestly? Slay, Doxygen. π€β¨
and that's the page!! πΈ This one is from the libstdc++ docs, and yeah, the footer's that same std::unary_func..._Arg, _Result >(3cxx) string with the version + date all smooshed together β so consider this your cute little sign-off: libstdc++ / (3cxx), dated whenever that footer said it was, mwah π π¦
π¦ 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