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

FreeBSD Manual Pages

  
 
  

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

NAME
       std::allocator::max_size	- std::allocator::max_size

Synopsis
	  size_type max_size() const throw();	(until C++11)
						(since C++11)
	  size_type max_size() const noexcept;	(deprecated in C++17)
						(removed in C++20)

	  Returns the maximum theoretically possible value of n, for which the
       call
	  allocate(n, 0) could succeed.

	  In	most	implementations,    this   returns   std::numeric_lim-
       its<size_type>::max() /
	  sizeof(value_type).

Parameters
	  (none)

Return value
	  The maximum supported	allocation size

See also
	  max_size returns the maximum object size supported by	the allocator
	  [static] (public static member function of std::allocator_traits<Al-
       loc>)

http://cppreference.com		  2022.07.31	   std::allocator::max_size(3)

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

home | help