Namespaces
Variants
Views
Actions

std::allocator::address

From cppreference.com
< cpp‎ | memory‎ | allocator
 
 
Dynamic memory management
Uninitialized storage
(C++17)
Garbage collection support
Miscellaneous
(C++20)
(C++11)
(C++11)
C Library
Low level memory management
 
 
pointer address( reference x ) const;
(deprecated in C++17)
(removed in C++20)
const_pointer address( const_reference x ) const;
(deprecated in C++17)
(removed in C++20)

Returns the actual address of x even in presence of overloaded operator&.

[edit] Parameters

x - the object to acquire address of

[edit] Return value

The actual address of x.

[edit] Exceptions

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