Changeset 2629 for XIOS3/trunk/src/utils.hpp
- Timestamp:
- 04/25/24 15:05:23 (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/utils.hpp
r2177 r2629 185 185 return hash; 186 186 } 187 187 188 188 static inline size_t hash_combine(size_t seed, const T& value) 189 189 { … … 193 193 194 194 }; 195 196 struct pair_xios_hash { 197 template <class T> 198 std::size_t operator () (const std::pair<T,T> &p) const 199 { 200 const std::vector<T> hash_vec = {p.first, p.second}; 201 return HashAlgorithm<T>::boost_hash(hash_vec ); 202 } 203 }; 204 195 205 196 206 template<typename T, typename Algo = Int2Type<0> >
Note: See TracChangeset
for help on using the changeset viewer.