chsvlib
chsv helper source code

◆ sbo_vector() [9/10]

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

Constructor which creates a vector omitting initialization of the allocated elements. .

Parameters
countA number of elements to allocate in the created vector.
allocatorA custom allocator whose copy is used by the created vector whenever allocations on heap take place.

The second parameter accepts the value do_not_initialize to allow the caller select this overload of the constructor.

The constructor performs no initialization of allocated elements.