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

FreeBSD Manual Pages

  
 
  

home | help
std::pointe...::to_address(3) C++ Standard Libarystd::pointe...::to_address(3)

NAME
       std::pointer_traits::to_address - std::pointer_traits::to_address

Synopsis
	  Defined in header <memory>
	  static element_type* to_address(pointer p)	   (since C++20)
	  noexcept;					   (optional member of
       program-defined
							   specialization)

	  Constructs  a	 raw  pointer  that  references	the same object	as its
       pointer-like ("fancy
	  pointer") argument.

	  This function, if defined, is	the inverse of pointer_to, and	exists
       as the
	  customization	point to be called by std::to_address.

Parameters
	  p - fancy pointer/pointer-like object

Return value
	  A  raw  pointer  of  the type	element_type* that references the same
       memory location as
	  the argument p.

See also
	  pointer_to obtains a dereferenceable pointer to its argument
	  [static]   (public static member function)
	  to_address obtains a raw pointer from	a pointer-like type
	  (C++20)    (function template)

http://cppreference.com		  2022.07.31	 std::pointe...::to_address(3)

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

home | help