Difference between revisions of "cpp/memory/allocator/address"
From cppreference.com
(+) |
(fmt) |
||
Line 3: | Line 3: | ||
{{ddcl list begin}} | {{ddcl list begin}} | ||
{{ddcl list item | 1= | {{ddcl list item | 1= | ||
− | pointer address(reference x) const | + | pointer address( reference x ) const; |
}} | }} | ||
{{ddcl list item | 1= | {{ddcl list item | 1= | ||
− | const_pointer address(const_reference x) const | + | const_pointer address( const_reference x ) const; |
}} | }} | ||
{{ddcl list end}} | {{ddcl list end}} |
Revision as of 14:10, 20 July 2012
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