cuda::experimental::stf::hash<::std::tuple< Ts… > >
Defined in include/cuda/experimental/__stf/utility/hash.cuh
-
template<typename ...Ts>
struct hash<::std::tuple<Ts...>> Specialization of hash for std::tuple.
Provides a hash function for std::tuple, allowing tuples to be used as keys in associative containers such as std::unordered_map or std::unordered_set.
- Template Parameters
Ts – Types of the elements in the tuple.
Public Functions
-
inline size_t operator()(const ::std::tuple<Ts...> &p) const
Computes a hash value for a given std::tuple.
This function applies a hash function to each element of the tuple and combines these hash values into a single hash value representing the entire tuple.
- Parameters
p – The tuple to hash.
- Returns
size_t The hash value of the tuple.