Functions | |
template<typename ExceptType , typename KeyType , typename ValueType > | |
const ValueType & | at (const std::map< KeyType, ValueType > &map, const KeyType &key, const char *msg="") |
const ValueType& alcap::at | ( | const std::map< KeyType, ValueType > & | map, | |
const KeyType & | key, | |||
const char * | msg = "" | |||
) | [inline] |
Definition at line 52 of file definitions.h.
00052 { 00053 typedef std::map<KeyType,ValueType> MapType; 00054 typename MapType::const_iterator it=map.find(key); 00055 if(it==map.end()) throw ExceptType(msg); 00056 return it->second; 00057 }