List
builtin list
1 2 3 4 5 6 |
|
Members
push(elements...)
pushes all given elements to the listpop(n=1)
removes the last n elementsclear()
empties the listsize
the current size of the listcapacity
the capacity of the; this value describes after what size a push triggers a resizeempty
if the list is emptyfront
the first element of the listback
the last element of the listreserve(capacity)
reserves more spaceshrink_to_fit()
shrinks the list and releases unused memoryinsert(index, elements...)
inserts the elements at the given indexerase(index, n=1)
erases from index n elementsreverse()
reverses the list inplace