Abstract
Abstract
clearAbstract
beginIterator pointing to the beginning element.
const begin = container.begin();
const end = container.end();
for (const it = begin; !it.equals(end); it.next()) {
doSomething(it.pointer);
}
Abstract
endIterator pointing to the super end like c++.
const begin = container.begin();
const end = container.end();
for (const it = begin; !it.equals(end); it.next()) {
doSomething(it.pointer);
}
Abstract
rIterator pointing to the end element.
const rBegin = container.rBegin();
const rEnd = container.rEnd();
for (const it = rBegin; !it.equals(rEnd); it.next()) {
doSomething(it.pointer);
}
Abstract
rIterator pointing to the super begin like c++.
const rBegin = container.rBegin();
const rEnd = container.rEnd();
for (const it = rBegin; !it.equals(rEnd); it.next()) {
doSomething(it.pointer);
}
Abstract
frontAbstract
backAbstract
findAn iterator pointing to the element if found, or super end if not found.
container.find(1).equals(container.end());
The element you want to find.
Abstract
forIterate over all elements in the container.
container.forEach((element, index) => console.log(element, index));
Abstract
getAbstract
eraseAbstract
eraseRemoves element by iterator and move iter
to next.
The next iterator.
container.eraseElementByIterator(container.begin());
container.eraseElementByIterator(container.end()); // throw a RangeError
The iterator you want to erase.
Abstract
[iterator]Generated using TypeDoc
Returns
The size of the container.
Example