Reference » Collections and iterators » Collection » CIter » reset

Elgrint::Collection::CIter::reset() method

Declaration (see MVector.h):

void reset();


Invalidates and disowns the iterator.


This function is usually called automatically during assignment and destruction of iterators. However, sometimes iterators should be reset manually, because each owned iterator makes the owner collection slower. This is especially true when trying to copy a collection which owns non-constant iterators - in this case a fast O(1) copy is impossible, and a full O(n) copy is performed (see Collection::operator=).

Let us know

Please Contact us to report any errors on this page, or to suggest any improvements.

Miranor Home | About Miranor | About Elgrint | Create account | Login | Account settings | Contact Us | Privacy Policy | Site map

© Copyright 2014 by Miranor. All rights reserved. By using this site you agree to the Terms of Use.

Page last updated on August 10th, 2014.