table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
- Leap-15.6
| std::allocator::address(3) | C++ Standard Libary | std::allocator::address(3) |
NAME¶
std::allocator::address - std::allocator::address
Synopsis¶
pointer address( reference x ) const; (until C++11) pointer
address( reference x ) const (since C++11) noexcept; (deprecated in
C++17)
(removed in C++20) const_pointer address( const_reference (1)
(until C++11) x ) const; const_pointer address( const_reference
(2) (since C++11) x ) const noexcept; (deprecated in C++17)
(removed in C++20)
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.
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 the return value
is &x (N2436) C++98 (which is affected by overloaded returns the actual
address of x
operator&)
| 2026.11.10 | http://cppreference.com |