Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/memory/allocator/address"

From cppreference.com
< cpp‎ | memory‎ | allocator
(noexcept)
(p0174r2)
Line 2: Line 2:
 
{{cpp/memory/allocator/navbar}}
 
{{cpp/memory/allocator/navbar}}
 
{{dcl begin}}
 
{{dcl begin}}
{{dcl | 1=
+
{{dcl | notes= {{mark|deprecated since C++17}} | 1=
 
pointer address( reference x ) const;
 
pointer address( reference x ) const;
 
}}
 
}}
{{dcl | 1=
+
{{dcl | notes= {{mark|deprecated since C++17}} | 1=
 
const_pointer address( const_reference x ) const;
 
const_pointer address( const_reference x ) const;
 
}}
 
}}

Revision as of 00:27, 27 June 2016

 
 
Dynamic memory management
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Allocators
Garbage collection support
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)



 
std::allocator
Member functions
allocator::address
(until C++20)
(until C++20)
(until C++20)
Non-member functions
 
pointer address( reference x ) const;
(deprecated since C++17)
const_pointer address( const_reference x ) const;
(deprecated since C++17)

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

Parameters

x - the object to acquire address of

Return value

The actual address of x.

Exceptions

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