Skip to content
Snippets Groups Projects
Commit 764c7f08 authored by Thibault Allenet's avatar Thibault Allenet
Browse files

Merge branch 'genericop_from_op' into low_bit_support_arm

parents 7050788e 5fd06284
No related branches found
No related tags found
2 merge requests!318[Upd] release verision 0.5.0,!262Low bit support for ARM Cortex-M export
......@@ -445,6 +445,17 @@ namespace std {
return seed;
}
};
// Specialization of std::hash for std::pair<T1, T2>
template <typename T1, typename T2>
struct hash<std::pair<T1, T2>> {
std::size_t operator()(const std::pair<T1, T2>& p) const {
std::size_t seed = 0;
Aidge::hash_combine(seed, std::hash<T1>()(p.first));
Aidge::hash_combine(seed, std::hash<T2>()(p.second));
return seed;
}
};
}
namespace future_std {
......
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