Function Subspace :: sus :: mem :: addressof

template <class T>
auto addressof(T& arg) -> T*
template <class T>
auto addressof(T&& arg) -> T*
deleted

Returns the address of an object, regardless of whether a class type overrides operator&.

This is like std::addressof, without pulling in all of the <memory> header. It also supports Obj-C ARC pointers.