Skip to content

Instantly share code, notes, and snippets.

@px-amaac
Created April 15, 2015 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save px-amaac/12d9c6d2a5cc1ad49c52 to your computer and use it in GitHub Desktop.
Save px-amaac/12d9c6d2a5cc1ad49c52 to your computer and use it in GitHub Desktop.
iterate map
std::map<std::string, Expression*> *param_map = getParamMap();
cout << "printing param keys" << endl;
for(auto it = param_map->begin(); it != param_map->end(); ++it)
{
cout << it->first << endl;
cout << "parameter map size " << param_map->size() << endl;
}
y
its a parameter_map size 2
y
its a parameter_map size 2
y
its a parameter_map size 2
y
its a parameter_map size 2
y
its a parameter_map size 2
y
its a parameter_map size 2
y
its a parameter_map size 2
y
its a parameter_map size 2
y
its a parameter_map size 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment