int64 Find(const char* symbol) const {
map<const char *, int64,StrCmp>::const_iterator it =
symbol_map_.find(symbol);
if (it == symbol_map_.end()) {
return -1;
}
return it->second;
}
和
struct StrCmp {
bool operator()(const char *s1, const char *s2) const {
return strcmp(s1, s2) < 0;
}
};
这两段程序的意思,请大侠帮忙