Luna::List::List

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

Constructs a list with the specified number of elements. Elements will be default-initialized.

Parameters

  • in count

    The number of elements to insert.

  • in alloc

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