DList.this

Creates a new $(D_PSYMBOL DList).

Parameters

len size_t

Initial length of the list.

allocator Allocator

Allocator.

Examples

auto l = DList!int(2, 3);
assert(l.front == 3);
assert(l.back == 3);
auto l = DList!int(2);
assert(l.front == 0);

Meta