mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user