public member function
<memory>

std::allocator::address

      pointer address ( reference x ) const;
const_pointer address ( const_reference x ) const;
      pointer address ( reference x ) const noexcept;
const_pointer address ( const_reference x ) const noexcept;
Return address
Returns the address of x.

In the standard default allocator, this effectively means returning &x.

Parameters

x
Reference to object.
reference and const_reference are member types (defined as aliases of T& and const T& respectively in std::allocator<T>).

Return value

A pointer to the object. In the standard allocator, &x.
pointer and const_pointer are member types (defined as aliases of T* and const T* respectively in std::allocator<T>).

See also