chsvlib
chsv helper source code

◆ sbo_vector() [8/10]

sbo_vector ( std::size_t  count,
const Allocator &  allocator = Allocator() 
)
explicit

Constructor creating a vector of a given size. .

Parameters
countThe required size of the vector.
allocatorA custom allocator used by the created vector to manage heap memory.

To prevent the vector from initializing default-constructible elements and only perform the necessary allocation, use a different constructor.