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>).