chsvlib
chsv helper source code

◆ sbo_vector() [7/10]

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

Constructor initializing the created vector with copies of a value. .

Parameters
countA number of elements to place to the created vector.
valA value whose copies initialize the elements of the created vector using copy-construction.
allocatorA custom allocator used by the created vector to manage heap memory.

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