__GNU_CXX::CONSTANT_UNARY_FUN(3cxx)
πΈ NAME πΈ
okay so this page is all about __gnu_cxx::constant_unary_fun< _Result, _Argument > β and yes bestie, itβs an SGI extension. It lives in the 3cxx manual, and weβre gonna get into it π
β¨ SYNOPSIS β¨
#include <functional>
It inherits __gnu_cxx::_Constant_unary_fun< _Result, _Argument >.
π Public Types π
argument_typeβtypedef _Argument argument_typeresult_typeβtypedef _Result result_type
π«Ά Public Member Functions π«Ά
constant_unary_fun (const _Result &__v)β the constructor, takingconst _Result &__vconst result_type & operator() (const _Argument &) constβ the call operator, returningconst result_type &, takingconst _Argument &, and itβsconst
π¦ Public Attributes π¦
result_type _M_valβ a public attribute, just sitting there being iconic
π Detailed Description π
Under the hood itβs declared like this:
template<class _Result, class _Argument = _Result>
struct __gnu_cxx::constant_unary_fun< _Result, _Argument >
And the entire detailed description is literally "An SGI extension . β yes, with the stray quote and the space before the period. We keep the lore π«‘β¨
π Author π
Bestie, nobody hand-wrote this one: Generated automatically by Doxygen for libstdc++ from the source code.
Cute little sign-off: this page is from the libstdc++ docs, generated straight from the source code, and itβs chillinβ in the 3cxx manual β no date printed on the footer, so this page has no birthday ππ. Stay hydrated and #include <functional> responsibly, bestie ππβ¨
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms