And to infer T
from x
instead? Obviously I can declare a function to do this:
template <typename T>
size_t get_std_hash(const T& x) {
return std::hash<T>{}(x);
}
The question is in case I've overlooked something, and this function or some variation of it is already in the standard.