Namespaces
Variants
Views
Actions

std::allocator::address

From cppreference.com
< cpp‎ | memory‎ | allocator
Revision as of 17:44, 26 August 2013 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
pointer address( reference x ) const;
const_pointer address( const_reference x ) const;

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)