VertexLoaderBase: Collapse std namespace for hash and mark noexcept

Makes the hash specialization a little less noisy. Also we mark it
noexcept, since hashes shouldn't be throwing exceptions (and this can be
optimized on).
This commit is contained in:
Lioncash 2024-01-31 12:42:57 -05:00
parent 8e4b2565cd
commit 0dfefacdf4
1 changed files with 2 additions and 5 deletions

View File

@ -46,14 +46,11 @@ private:
}
};
namespace std
{
template <>
struct hash<VertexLoaderUID>
struct std::hash<VertexLoaderUID>
{
size_t operator()(const VertexLoaderUID& uid) const { return uid.GetHash(); }
size_t operator()(const VertexLoaderUID& uid) const noexcept { return uid.GetHash(); }
};
} // namespace std
class VertexLoaderBase
{