UnrolledLinkedList¶
Usage
use UnrolledLinkedList;
-
class
UnrollBlock¶ -
type
eltType¶
-
param
cap: int¶
-
var
end: int¶
-
var
start: int¶
-
var
data: eltTypec_arraycap¶
-
var
next: unmanaged nilable eltTypeUnrollBlockcap¶
-
type
-
record
UnrolledLinkedList¶ -
type
eltType¶
-
param
unrollBlockSize: int¶
-
var
sz: int¶
-
var
head: unmanaged nilable eltTypeUnrollBlockunrollBlockSize¶
-
proc
init(type eltType, param unrollBlockSize: int)¶
-
proc
append(elt: eltType)¶
-
proc
size¶
-
proc
remove(ref elt: ?eltType): bool¶
-
iter
these(): eltType¶
-
proc
deinit()¶
-
type
-
proc
main()¶