UnrolledList.insert

Insert item at position i. O(N)

struct UnrolledList(T, Allocator = Mallocator, bool GCRangesAllowed = true)
pragma(inline, true)
bool
insert
(
V
)
(
int i
,
V v
)

Parameters

v V

value to insert

i int

position for this value

Return Value

Type: bool

True if item were inserted (false if index is > list.length+1)

Throws

AssertError if any const range is registered.

Meta