STD::EXPERIMENTAL::_HAS_ADDRESSOF(3cxx)
πΈ NAME πΈ
std::experimental::_Has_addressof< _Tp > β it's the trait that sniffs out whether there's an overloaded unary operator& hanging around. bestie, it's giving detective energy ππ
β¨ SYNOPSIS β¨
#include <optional>
Inherits std::__or_<... >::type.
π¦ DETAILED DESCRIPTION π¦
template<typename _Tp>
struct std::experimental::_Has_addressof< _Tp >
okay so this is the trait that detects the presence of an overloaded unary operator&. no cap, that's literally its whole thing π
Practically speaking β and this is the part where it gets cute β it detects that operator when it's called on a const-qualified lvalue. The vibe check example being declval<const _Tp&>().operator&(). so like, const lvalue specifically, not just any old object, iykyk π
Definition at line162of fileoptional. β (yes, the file is literally namedoptional, iconic)
π AUTHOR π
Generated automatically by Doxygen for libstdc++ straight from the source code. not a human author, just a robot doing its thing and honestly? slay π€β¨
and that's the whole page, bestie π this came to you from the libstdc++ girlies, in the 3cxx manual section β go forth and detect those operator& overloads, you absolute main character ππ¦
π¦ 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