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
|
@ -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…
Reference in New Issue