I want to iterate through each element in the map without knowing any of its string-int values or keys.
What I have so far:
As @Vlad from Moscow says,
Take into account that value_type for std::map is defined the following way:
typedef pair value_type
This then means that if you wish to replace the keyword auto with a more explicit type specifier, then you could this;
for ( const pair &p : table ) {
std::cout << p.first << '\t' << p.second << std::endl;
}
Just for understanding what auto will translate to in this case.