Difference between revisions of "cpp/memory/allocator/address"
From cppreference.com
(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
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) |