Class for comfortable using of vectors with small while loop
instead iterators. Performance is same as with iterators. Enumerator usage
typedef Enumerator<VectorString> EnumeratorVectorString;
vec.push_back("value");
EnumeratorVectorString enum_vec(vec);
while (enum_vec.next())
{
std::string value = enum_vec.current();
}
typedef std::pair<std::string, std::string>
PairString;
MapString map;
map["key"] = "value";
EnumeratorMapString enum_map(map);
while (enum_map.next())
{
std::string key = enum_map.current().first;
std::string value = enum_map.current().second;
}