Luna::List::List

List(usize count, const_reference value, const allocator_type &alloc=allocator_type())

Constructs a list with the specified number of elements.

Parameters

  • in count

    The number of elements to insert.

  • in value

    The value used to construct elements. Every element will be copy-constructed from this value.

  • in alloc

    The allocator to use. The allocator object will be copy-constructed into the list.