std::allocator<T>::address

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

# Declarations

pointer address( reference x ) const;

(until C++11)

pointer address( reference x ) const noexcept;

(since C++11) (deprecated in C++17) (removed in C++20)

const_pointer address( const_reference x ) const;

(until C++11)

const_pointer address( const_reference x ) const noexcept;

(since C++11) (deprecated in C++17) (removed in C++20)

# Parameters

# Return value

The actual address of x.

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 634(N2436)C++98the return value is &x(which is affected by overloaded operator&)returns the actual address of x