Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | memory‎ | allocator
(+)
 
(fmt)
Line 3: Line 3:
 
{{ddcl list begin}}
 
{{ddcl list begin}}
 
{{ddcl list item | 1=
 
{{ddcl list item | 1=
pointer address(reference x) const noexcept;
+
pointer address( reference x ) const;
 
}}
 
}}
 
{{ddcl list item | 1=
 
{{ddcl list item | 1=
const_pointer address(const_reference x) const noexcept;
+
const_pointer address( const_reference x ) const;
 
}}
 
}}
 
{{ddcl list end}}
 
{{ddcl list end}}

Revision as of 14:10, 20 July 2012

 
 
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
 

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
pointer address( reference x ) const;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
const_pointer address( const_reference x ) const;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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

noexcept specification:  
noexcept