max_size

max_size#

stdgpu: stdgpu::allocator_traits::max_size
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ max_size()

template<typename Allocator >
static STDGPU_HOST_DEVICE index_type stdgpu::allocator_traits< Allocator >::max_size ( const Allocator &  a)
staticnoexcept

Returns the maximum size that could be theoretically allocated.

Parameters
[in]aThe allocator to use
Returns
The maximum size that could be theoretically allocated