mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00: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:
parent
8e4b2565cd
commit
0dfefacdf4
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue