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

FreeBSD Manual Pages

  
 
  

home | help
std::experi...::deallocate(3) C++ Standard Libarystd::experi...::deallocate(3)

NAME
       std::experimental::pmr::polymorphic_allocator::deallocate - std::exper-
       imental::pmr::polymorphic_allocator::deallocate

Synopsis
	  void deallocate(T* p,	std::size_t n );  (library fundamentals	TS)

	  Deallocates  the storage pointed to by p, which must have been allo-
       cated from a
	  memory_resource x that compares equal	to *resource()	using  x.allo-
       cate(n *	sizeof(T),
	  alignof(T)).

	  Equivalent  to  this->resource()->deallocate(p, n * sizeof(T), alig-
       nof(T));

Parameters
	  p - pointer to memory	to deallocate
	  n - the number of objects originally allocated

Exceptions
	  Throws nothing.

See also
	  deallocate deallocates storage using the allocator
	  [static]    (public	static	 member	  function   of	  std::alloca-
       tor_traits<Alloc>)
	  deallocate deallocates memory
		     (public  member  function of std::experimental::pmr::mem-
       ory_resource)

http://cppreference.com		  2022.07.31	 std::experi...::deallocate(3)

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

home | help