在线文档教程
C++
动态内存管理 | Dynamic memory management

std::allocator::address

分配器::地址

pointer address( reference x ) const;(deprecated since C++17)
const_pointer address( const_reference x ) const;(deprecated since C++17)

返回实际地址x即使在超载的情况下operator&...

参数

x-the object to acquire address of

返回值

实际地址x...

例外

(none)(until C++11)
noexcept specification: noexcept(since C++11)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/Memory/allocator/Address