1 #ifndef FWCore_Utilities_Map_h 2 #define FWCore_Utilities_Map_h 15 template <
typename Key,
typename Value>
25 template <
typename Key,
typename Value>
29 typename std::map<Key, Value>::const_iterator it = m.find(k);
30 return (it == m.end() ? defaultValue : it->second);
33 template <
typename Key,
typename Value>
37 typename std::map<Key, Value>::const_iterator it = m.find(k);
38 return (it == m.end() ? defaultValue : it->second);
44 template <
typename Key,
typename Value>
48 typename std::map<Key, Value>::const_iterator it = m.find(k);
49 return (it == m.end() ?
Value() : it->second);
55 template <
typename Key,
typename Value>
59 typename std::map<Key, Value>::const_iterator it = m.find(k);
60 if (it == m.end()) assert(
"findOrAssert" && 0);
64 template <
typename Key,
typename Value>
68 typename std::map<Key, Value>::const_iterator it = m.find(k);
69 if (it == m.end()) 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)