__GNU_CXX::CONSTANT_BINARY_FUN(3cxx)
okay bestie, welcome to the 3cxx manual page for __gnu_cxx::constant_binary_fun< _Result, _Arg1, _Arg2 > β it's giving tiny SGI extension struct with main character energy β¨π
πΈ NAME πΈ
__gnu_cxx::constant_binary_fun< _Result, _Arg1, _Arg2 > β an SGI extension, no cap. The page literally labels it An SGI extension . (yes, with that space before the period; we preserve the facts, periodt π).
β¨ SYNOPSIS β¨
First things first, bestie: include the header.
#include <functional>
It inherits from __gnu_cxx::_Constant_binary_fun< _Result, _Arg1, _Arg2 >. That's the family tree, and we're not editing it π«Ά.
π Public Types π
typedef _Arg1 first_argument_typeβ the first-argument type is_Arg1, iconic.typedef _Result result_typeβ the result type is_Result, slay.typedef _Arg2 second_argument_typeβ the second-argument type is_Arg2, and that's the whole trio π.
π Public Member Functions π
constant_binary_fun (const _Result &__v)β a member function takingconst _Result &__v. It's serving constructor-ish energy, lowkey.const result_type & operator() (const _Arg1 &, const _Arg2 &) constβ the call operator isconst, takesconst _Arg1 &andconst _Arg2 &, and returnsconst result_type &. Literally the signature, no extra lore π .
π Public Attributes π
_Result _M_valβ the public attribute is_Result _M_val. It's right there, holding the value vibe π.
π₯ Detailed Description π₯
The full template vibe is:
template<class _Result, class _Arg1 = _Result, class _Arg2 = _Arg1>
struct __gnu_cxx::constant_binary_fun< _Result, _Arg1, _Arg2 >"An SGI
extension .
So default-wise, _Arg1 defaults to _Result, and _Arg2 defaults to _Arg1. That quote mark before An SGI extension . is in the original page, bestie β not me being chaotic π. And yes, the line wraps after SGI in the source, but it's still an SGI extension, periodt.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. That's the author section, and it ate β¨.
okay that's the whole page, bestie β source/version vibes: libstdc++ in the 3cxx manual, generated automatically by Doxygen from the source code; the footer doesn't show a separate date, so no date to quote here. mwah πβ¨π«Ά
π¦ 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