1 #ifndef FWCore_Utilities_Map_h 2 #define FWCore_Utilities_Map_h 15 template <
typename Key,
typename Value>
23 template <
typename Key,
typename Value>
25 typename std::map<Key, Value>::const_iterator it = m.find(k);
26 return (it == m.end() ? defaultValue : it->second);
29 template <
typename Key,
typename Value>
31 typename std::map<Key, Value>::const_iterator it = m.find(k);
32 return (it == m.end() ? defaultValue : it->second);
38 template <
typename Key,
typename Value>
40 typename std::map<Key, Value>::const_iterator it = m.find(k);
41 return (it == m.end() ?
Value() : it->second);
47 template <
typename Key,
typename Value>
49 typename std::map<Key, Value>::const_iterator it = m.find(k);
51 assert(
"findOrAssert" && 0);
55 template <
typename Key,
typename Value>
57 typename std::map<Key, Value>::const_iterator it = m.find(k);
59 assert(
"findOrAssert" && 0);
Value const & findOrAssert(std::map< Key, Value > const &m, Key const &k)
Value & findOrInsert(std::map< Key, Value > &m, Key const &k)
reco::JetExtendedAssociation::JetExtendedData Value
Value const & findOrDefault(std::map< Key, Value > const &m, Key const &k, Value const &defaultValue)