Readonly
iteratorThe container pointed to by the iterator.
Pointers to element.
The value of the pointer's element.
const val = container.begin().pointer;
Set pointer's value (some containers are unavailable).
(<LinkList<number>>container).begin().pointer = 1;
The new value you want to set.
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: IteratorTypeGenerated using TypeDoc
Description
Iterator's type.
Example