Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-24 02:18:58

0001 #ifndef FWCore_Utilities_std_pair_hasher_h
0002 #define FWCore_Utilities_std_pair_hasher_h
0003 /*
0004  oneapi::tbb::hash was changed to used std::hash which does not have an implementation for std::pair.
0005 */
0006 
0007 #include <string>
0008 #include "FWCore/Utilities/interface/hash_combine.h"
0009 
0010 namespace edm {
0011   struct StdPairHasher {
0012     std::size_t operator()(const std::pair<const std::string, const std::string>& a) const noexcept {
0013       return edm::hash_value(a.first, a.second);
0014     }
0015     std::size_t operator()(const std::pair<const unsigned int, const unsigned int>& a) const noexcept {
0016       return edm::hash_value(a.first, a.second);
0017     }
0018   };
0019 }  // namespace edm
0020 #endif