std::_Function_base(3cxx)

✨ std::_Function_base ✨

okay bestie, buckle up β€” we're in libstdc++ land, section 3cxx, and this is the page for std::_Function_base πŸ’…

🌸 NAME 🌸

std::_Function_base β€” the base class of literally all polymorphic function object wrappers, no cap 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <functional>

Inherited by std::function< _Res(_ArgTypes...)> [private] β€” yes, private inheritance, it's giving lowkey mysterious πŸ™ˆ

πŸ’œ Public Types πŸ’œ

  • using _Manager_type = bool(*)(_Any_data &, const _Any_data &, _Manager_operation) β€” the manager function pointer type. That's the whole signature, character for character, don't come for me 😭

πŸŽ€ Public Member Functions πŸŽ€

  • bool _M_empty () const β€” tells you whether it's empty. const-correct icon behavior πŸ‘‘

⭐ Public Attributes ⭐

  • _Any_data _M_functor β€” the functor storage itself, the main character πŸ’–
  • _Manager_type _M_manager β€” the manager function pointer riding shotgun ✨

🌈 Static Public Attributes 🌈

  • static const size_t _M_max_align β€” max alignment, static const, we love a fixed value πŸŽ€
  • static const size_t _M_max_size β€” max size, also static const πŸŽ€

πŸ‘‘ Detailed Description πŸ‘‘

Base class of all polymorphic function object wrappers. That's the vibe. That's the whole vibe. It's the foundation everything else is built on, fr fr πŸ—οΈπŸ’…

πŸ“ Author πŸ“

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, just a robot doing its little robot thing πŸ€–βœ¨


heads up bestie: this whole page was auto-generated by Doxygen, so if something looks a lil stiff, that's why β€” but the facts are all here, iykyk πŸ’―

and that's the whole page!! sourced straight from libstdc++, section 3cxx of the manual β€” mwah, love u, go read some source code πŸ§šπŸ’œπŸŽ€

πŸ“¦ where this page comes from