मैं map<string, int>इसके किसी भी स्ट्रिंग-इंट मान या कुंजियों को जाने बिना प्रत्येक तत्व के माध्यम से पुनरावृति करना चाहता हूं ।
मेरे पास अब तक क्या है:
void output(map<string, int> table)
{
map<string, int>::iterator it;
for (it = table.begin(); it != table.end(); it++)
{
//How do I access each element?
}
}