FWCore
Utilities
interface
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
tbb::hash was changed to used std::hash which does not have an implementation for std::pair.
5
*/
6
7
#include <string>
8
#include "
FWCore/Utilities/interface/hash_combine.h
"
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
edm::hash_value
std::size_t hash_value(const Types &... args)
Definition:
hash_combine.h:36
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::StdPairHasher::operator()
std::size_t operator()(const std::pair< const std::string, const std::string > &a) const noexcept
Definition:
StdPairHasher.h:12
edm::StdPairHasher
Definition:
StdPairHasher.h:11
a
double a
Definition:
hdecay.h:119
edm::StdPairHasher::operator()
std::size_t operator()(const std::pair< const unsigned int, const unsigned int > &a) const noexcept
Definition:
StdPairHasher.h:15
hash_combine.h
Generated for CMSSW Reference Manual by
1.8.16