xtd 0.2.0
Loading...
Searching...
No Matches

◆ list() [3/15]

template<typename type_t , typename allocator_t = xtd::collections::generic::helpers::allocator<typename std::conditional<std::is_same<bool, type_t>::value, char, type_t>::type>>
xtd::collections::generic::list< type_t, allocator_t >::list ( size_type  count,
const type_t &  value,
const allocator_type alloc = allocator_type() 
)
inline

Constructs the container with specified count copies of elements with specified value.

Parameters
countThe size of the container.
valueThe value to initialize elements of the container with.
allocThe allocator to use for all memory allocations of this container.