STD::IS_INVOCABLE_R(3cxx)
β¨ NAME β¨
std::is_invocable_r< _Ret, _Fn, _ArgTypes > β bestie, it's literally std::is_invocable_r, and it lives in the <type_traits> header of libstdc++'s manual section 3cxx π
πΈ SYNOPSIS πΈ
#include <type_traits>
That's it. That's the whole doorway. Go off, queen π
π¦ DETAILED DESCRIPTION π¦
Ok so picture this: you've got a callable, you've got some argument types, and you've got a return type you want. And you're sitting there likeβ¦ "can I even invoke this thing with these args and get a result that plays nice with _Ret?" That's the vibe check, and std::is_invocable_r is the one running it π
Here's the shape of it, no cap:
template<typename _Ret, typename _Fn, typename... _ArgTypes>
struct std::is_invocable_r< _Ret, _Fn, _ArgTypes >"std::is_invocable_r
The way that signature is giving templated struct, lowkey iconic. _Ret is the return type you're asking about, _Fn is the thing you wanna call, and _ArgTypes is the pack of argument types you'd be calling it with β a variadic pack, so it can be zero args, one arg, or a whole squad of them π«Ά
It's a type trait, so it's main character energy at compile time β no runtime here, bestie, this is all happening while the compiler's still doing its hair β¨
π AUTHOR π
Generated automatically by Doxygen for libstdc++ from the source code. Not me, not you, not a human β the machine did it fr fr π
and that's the whole page, bestie!! this one came straight off the libstdc++ manual, section 3cxx, and yeah β the footer is literally the same title again because Doxygen said "why not" π stan a template trait π
π¦ where this page comes from
- ubuntu resolute: libstdc++-11-doc 11.5.0-11ubuntu2
- ubuntu resolute: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu stonking: libstdc++-11-doc 11.5.0-11ubuntu2
- ubuntu stonking: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms