R
Robert Sturzenegger
// Hello!
typedef deque<int> D;
typedef D::iterator Iter;
D d;
Iter iter;
// here hundreds of elements pushed back to d
int myNode = d[100];
// Here I want to erase the node with index 100. If I had the iterator of
this node,
// I would use d.erase(iter); But how can I get the iterator? Or is there
another way
// to erase this node?
// Thanks a lot!
// Robert Sturzenegger
typedef deque<int> D;
typedef D::iterator Iter;
D d;
Iter iter;
// here hundreds of elements pushed back to d
int myNode = d[100];
// Here I want to erase the node with index 100. If I had the iterator of
this node,
// I would use d.erase(iter); But how can I get the iterator? Or is there
another way
// to erase this node?
// Thanks a lot!
// Robert Sturzenegger