CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
StdPairHasher.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_std_pair_hasher_h
2 #define FWCore_Utilities_std_pair_hasher_h
3 /*
4  oneapi::tbb::hash was changed to used std::hash which does not have an implementation for std::pair.
5 */
6 
7 #include <string>
9 
10 namespace edm {
11  struct StdPairHasher {
12  std::size_t operator()(const std::pair<const std::string, const std::string>& a) const noexcept {
13  return edm::hash_value(a.first, a.second);
14  }
15  std::size_t operator()(const std::pair<const unsigned int, const unsigned int>& a) const noexcept {
16  return edm::hash_value(a.first, a.second);
17  }
18  };
19 } // namespace edm
20 #endif
std::size_t operator()(const std::pair< const unsigned int, const unsigned int > &a) const noexcept
Definition: StdPairHasher.h:15
std::size_t hash_value(const Types &...args)
Definition: hash_combine.h:36
double a
Definition: hdecay.h:119
std::size_t operator()(const std::pair< const std::string, const std::string > &a) const noexcept
Definition: StdPairHasher.h:12