Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

STL Iterators

Name: Anonymous 2011-11-22 21:14

Do STL iterators need to be deleted when you're done with them? If I remember right, iterators are nothing but pointers that have been gussied up, but do they have their own destructors that clean up all their internal mess? I can't remember for the life of me and google is no help.

Name: Anonymous 2011-11-23 6:57

>>18
>sizeof(container)/sizeof(container[0]) on a pointer
Nothing wrong with that, sizeof doesn't actually access its argument.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List