Skip to content

Instantly share code, notes, and snippets.

@arijitvt
Created September 16, 2013 23:50
Show Gist options
  • Save arijitvt/6588266 to your computer and use it in GitHub Desktop.
Save arijitvt/6588266 to your computer and use it in GitHub Desktop.
IdentifierTable *iTable = identifierTable;
LiteralIdentifierTable& literalTable = iTable->literalTable();
//if(literalTable) {
cout<<"Hashmap capacity : "<<literalTable.size()<<endl;
//}
LiteralIdentifierTable::iterator itr = literalTable.begin();
while(itr != literalTable.end()) {
++itr;
const char *data = itr->first;
if(data && strcmp(data,"var") == 0) {
cout<<"The literal is : "<<data<<endl;
//cout<<"And the value is : "<<*itr->second<<endl;
}
// cout<<(*itr)->first()<<endl;
//const char* key = itr->begin();
//cout<<"The Key is : "<<key<<endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment