STD::_MAYBE_GET_RESULT_TYPE(3cxx)
β¨ 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
- ubuntu noble: libstdc++-9-doc 9.5.0-6ubuntu2
- ubuntu noble: libstdc++-9-doc 9.5.0-6ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms