construct — stdgpu Latest documentation (original) (raw)

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 construct() template template<typename T , class... Args> static STDGPU_HOST_DEVICE void stdgpu::allocator_traits< Allocator >::construct ( Allocator & a, T * p, Args &&... args ) static Constructs an object value at the given pointer. Template Parameters TThe value type ArgsThe argument types Parameters [in]aThe allocator to use [in]pA pointer to the value [in]argsThe arguments to construct the value