allocate — stdgpu Latest documentation (original) (raw)
allocate#
stdgpu: stdgpu::allocator_traits::allocate
stdgpu Latest
Efficient STL-like Data Structures on the GPU
- stdgpu
- allocator_traits
| allocate allocate allocate_filled allocator_type const_pointer const_void_pointer construct deallocate deallocate_filled destroy difference_type index_type is_always_equal max_size pointer propagate_on_container_copy_assignment propagate_on_container_move_assignment propagate_on_container_swap rebind_alloc rebind_traits select_on_container_copy_construction value_type void_pointer | ◆ allocate() [2/2] template static pointer stdgpu::allocator_traits< Allocator >::allocate ( Allocator & a, index_type n, const_void_pointer hint ) static Allocates a memory block of the given size. Parameters [in]aThe allocator to use [in]nThe number of allocated elements [in]hintA pointer serving as a hint for the allocator ReturnsA pointer to the allocated memory block |
|---|