STD::_WEAK_RESULT_TYPE(3cxx)

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

✨ NAME ✨

std::_Weak_result_type< _Functor > β€” bestie, this is a libstdc++ internal type (manual page 3cxx, C++ headers section) πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <refwrap.h>

Inherits from std::_Weak_result_type_memfun< _Functor, bool >. πŸ‘‘

Inherited by std::_Reference_wrapper_base< remove_cv< _Tp >::type >, and std::_Bind< _Functor(_Bound_args...)>. So yeah, it's the parent friend of some very main-character types 🌈


πŸ’– Detailed Description πŸ’–

template<typename _Functor>
struct std::_Weak_result_type< _Functor >

Okay so lowkey what this one does is: strip the top-level cv-qualifiers off your function object, and then let _Weak_result_type_memfun do the actual work. That's it. That's the whole job. It's giving "middle management but make it templates" 😭 and honestly? Iconic.

Definition at line 174 of file refwrap.h. Noted, fr fr πŸ“


πŸ‘‘ Author πŸ‘‘

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


And that's the tea, bestie πŸ«– β€” this page came to you from libstdc++, on the 3cxx manual, so go forth and template responsibly. Mwah πŸ’‹

πŸ“¦ where this page comes from