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.

参数

x
Reference to object.
引用const_referenceare member types (defined as aliases ofT&const T&respectively instd::allocator<T>).

返回值

A pointer to the object. In the standard allocator,&x.
指针const_pointerare member types (defined as aliases ofT*const T*respectively instd::allocator<T>).

另见