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

◆ resize()

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

If the current size is greater than n, the container is reduced to its first n elements. If the current size is less than n, additional elements are appended. Those elements are either default-inserted or copied if value is provided.

Parameters
nnew size of the container
valuethe value to initialize the new elements with