__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 taking const _Result &__v. It's serving constructor-ish energy, lowkey.
  • const result_type & operator() (const _Arg1 &, const _Arg2 &) const β€” the call operator is const, takes const _Arg1 & and const _Arg2 &, and returns const 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 πŸ’–βœ¨πŸ«Ά