Readonly
iteratorReadonly
containerThe container pointed to by the iterator.
Move this
iterator to pre.
The iterator's self.
const iter = container.find(1); // container = [0, 1]
const pre = iter.pre();
console.log(pre === iter); // true
console.log(pre.equals(iter)); // true
console.log(pre.pointer, iter.pointer); // 0, 0
Move this
iterator to next.
The iterator's self.
const iter = container.find(1); // container = [1, 2]
const next = iter.next();
console.log(next === iter); // true
console.log(next.equals(iter)); // true
console.log(next.pointer, iter.pointer); // 2, 2
Get a copy of itself.
The copy of self.
const iter = container.find(1); // container = [1, 2]
const next = iter.copy().next();
console.log(next === iter); // false
console.log(next.equals(iter)); // false
console.log(next.pointer, iter.pointer); // 2, 1
Whether this equals to obj.
container.find(1).equals(container.end());
The other iterator you want to compare.
Optional
iteratorType: IteratorTypePointers to element.
The value of the pointer's element.
const val = container.begin().pointer;
Generated using TypeDoc
Description
Iterator's type.
Example