SList.this

Creates a new $(D_PSYMBOL SList).

Parameters

len size_t

Initial length of the list.

init T

Initial value to fill the list with.

allocator Allocator

Allocator.

Examples

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

Meta