G
Gernot Frisch
Hi,
list<int> ml;
list<int>::iterator it=ml.begin();
why can't I use / why isn't there:
ml::iterator it = ml.begin();
It's pretty annoying having to know the exact type of a variable in
order to create an iterator for it. MFC (which is really, really a lot
of crap) has one unique iterator for all and everything: "POSITION". I
don't need it this way, since there are good reasons for different
iterator classes, but why can't an object of a container class provide
it?
-Gernot
list<int> ml;
list<int>::iterator it=ml.begin();
why can't I use / why isn't there:
ml::iterator it = ml.begin();
It's pretty annoying having to know the exact type of a variable in
order to create an iterator for it. MFC (which is really, really a lot
of crap) has one unique iterator for all and everything: "POSITION". I
don't need it this way, since there are good reasons for different
iterator classes, but why can't an object of a container class provide
it?
-Gernot