Elgrint::Collection::Iter class

Declared in MVector.h

Description

Generic non-constant iterator (pseudo-class) of a collection.

Details

Non-constant iterators are virtually identical in their usage to constant iterators (see CIter), with only a few differences:

Constant and non-constant iterators are not compatible to each other - constant iterators cannot be assigned or compared to non-constant iterators and vice versa.

Not all collections have a non-constant iterator, because in some collections, such as MHash, the location of the item depends on its value, so changing the value of an item would break the collection's consistency. Only 4 collections have a non-constant iterator: MVector, MMap, MList, and MImage.

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.