1234567891011
struct eqstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) == 0; } }; unordered_map<const char*, class c_simbolo *, hash<const char*>, eqstr> tabla; unordered_map<const char*, c_simbolo *, hash<const char*>, eqstr> ::iterator it; unordered_map<const char*, c_simbolo *, hash<const char*>, eqstr> ::iterator it_busquedas;
123456789
c_simbolo *c_tabla_simbolos :: buscar (char *ident) { it_busquedas=tabla.find (ident); if (it_busquedas == tabla.end()) return NULL; else{ return (*it_busquedas).second;} }
hash<const char*>
std::string