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;
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;
}
std::map< std::string, std::string > MapString
std::pair< std::string, std::string > PairString
std::vector< std::string > VectorString