alcap Namespace Reference

Functions

template<typename ExceptType , typename KeyType , typename ValueType >
const ValueType & at (const std::map< KeyType, ValueType > &map, const KeyType &key, const char *msg="")

Function Documentation

template<typename ExceptType , typename KeyType , typename ValueType >
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        }


Generated on 15 Jun 2016 for AlcapDAQ by  doxygen 1.6.1