STD::_MAYBE_GET_RESULT_TYPE(3cxx)

πŸ“¦
version 9.5.0 Β· 3 versions
, in ubuntu noble

✨ NAME ✨

std::_Maybe_get_result_type< _Functor, typename > β€” bestie, if we found a result_type, we extract it. That's the whole job. That's the vibe. πŸ’…

This one lives in the 3cxx manual, she's a libstdc++ girlie, and she is very template-heavy so buckle up πŸŽ€


🌸 SYNOPSIS 🌸

#include <refwrap.h>

Inherited by:

  • std::_Weak_result_type_impl< remove_cv< _Tp >::type >
  • std::_Weak_result_type_impl< remove_cv< _Functor >::type >
  • std::_Weak_result_type_impl< remove_cv< remove_cv< _Tp >::type >::type >
  • std::_Weak_result_type_impl< _Functor >

Not me listing all four inheritance parents like it's a group chat roll call 😭 (yes, the third one really is a remove_cv inside a remove_cv, we don't make the rules, we just inherit from them πŸ’€)


πŸ’œ Detailed Description πŸ’œ

The declaration itself, in all her glory:

template<typename _Functor, typename = __void_t<>>
    struct std::_Maybe_get_result_type< _Functor, typename >

"If we have found a result_type, extract it." ✨

That's the entire personality. She's a helper struct doing quiet, iconic work behind the scenes β€” full main character energy in a supporting role 🫢

FYI bestie: the definition lives at line 112 of file refwrap.h. If you ever need to find her, that's the address πŸ“

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. πŸ€–πŸ’– So technically no human author to credit, she was born from a doc generator, and honestly? Slay.


okay so that's the whole page, no cap β€” a tiny little template helper, four inheritance parents, one #include, and a dream πŸ¦‹

This cutie comes to you from libstdc++ (Doxygen-generated, as the footer says β€” and yes the footer is literally just the libstdc++ source plus the mangled title, no date on this one, we work with what we got πŸ™ˆ) πŸ’–

πŸ“¦ where this page comes from