Поделиться через


addressof

Gets the true address of an object.

template<class T> T* addressof(
    T& Val
);

Parameters

  • Val
    The object or function for which to obtain the true address.

Return Value

The actual address of the object or function referenced by Val, even if an overloaded operator&() exists.

Requirements

Header: <memory>

Namespace: std

See Also

Reference

<memory>