E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ reserve()

template<eve::product_type Type, eve::simd_allocator Allocator = eve::aligned_allocator<unsigned char, eve::fixed<64>>>
void eve::algo::soa_vector< Type, Allocator >::reserve ( size_type  n)
inline

If n is greater than the current capacity(), new storage is allocated and all iterators, including the past-the-end iterator, and all references to the elements are invalidated. Otherwise, the method does nothing.

Warning
reserve() does not change the size of the vector.
Parameters
nNew capacity of the eve::soa_vector