A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://en.cppreference.com/w/cpp/../cpp/ranges/../../cpp/named_req/../memory/allocator/address.html below:

std::allocator<T>::address - cppreference.com

(1)

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) (2)

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)

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] Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

DR Applied to Behavior as published Correct behavior LWG 634
(N2436) C++98 the return value is &x
(which is affected by overloaded operator&) returns the actual address of x

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4