std::allocator<T>::address
来自cppreference.com
| pointer address( reference x ) const; |
(C++11 前) | |
| pointer address( reference x ) const noexcept; |
(C++11 起) (C++17 中弃用) (C++20 中移除) |
|
| const_pointer address( const_reference x ) const; |
(C++11 前) | |
| const_pointer address( const_reference x ) const noexcept; |
(C++11 起) (C++17 中弃用) (C++20 中移除) |
|
返回 x 的实际地址,即使存在重载的 operator& 。
参数
| x | - | 要获取地址的对象 |
返回值
x 的实际地址。