Skip to content
Snippets Groups Projects
Commit 42f5febe authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'idhash.Identifier-20200501' into 'master'

Identifier: Define C++ hash for IdentifierHash.

See merge request atlas/athena!32521
parents eec02663 a1a0c195
No related branches found
No related tags found
No related merge requests found
......@@ -181,4 +181,19 @@ inline std::ostream& operator << (std::ostream& os, const IdentifierHash& id)
return os;
}
// Define a hash functional
namespace std {
template<>
struct hash<IdentifierHash>
{
size_t operator()(const IdentifierHash& id) const
{
return static_cast<size_t>(id.value());
}
};
}
#endif // IDENTIFIER_IDENTIFIERHASH_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment