Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::allocator::address(3)    C++ Standard Libary   std::allocator::address(3)

NAME
       std::allocator::address - std::allocator::address

Synopsis
	  pointer address( reference x )	     (until C++11)
	  const;
	  pointer address( reference x )	     (since C++11)
	  const	noexcept;			     (deprecated in C++17)
						     (removed in C++20)
	  const_pointer		       address(				   (1)
       (until C++11)
	  const_reference x ) const;
	  const_pointer		     address(				   (2)
       (since C++11)
	  const_reference		 x		 )		 const
       (deprecated in
	  noexcept;
       C++17)
									   (re-
       moved in	C++20)

	  Returns the actual address of	x even in presence of overloaded oper-
       ator&.

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 retroac-
       tively to
	  previously published C++ standards.

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

http://cppreference.com		  2024.06.10	    std::allocator::address(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::allocator::address&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help