mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06: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 <>
|
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
|
class VertexLoaderBase
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user