addressof
Fully qualified name: carb::cpp::addressof
Defined in carb/cpp/Memory.h
-
template<typename T>
constexpr T *carb::cpp::addressof(
- T &arg,
) noexcept
Get the address of arg, even if operator&
is overloaded. This is generally only useful in memory management functions — to_address
is almost always preferable.
Note
This function is constexpr
even in C++14 mode.