The std::hash class should be DefaultConstructible, CopyConstructible, and Destructible.
std::hash
© cppreference.comLicensed under the Creative Commons Attribution-ShareAlike Unported License v3.0. https://en.cppreference.com/w/cpp/utility/hash/hash