mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
std::hash support for gsl::not_null.
This commit is contained in:
parent
a544ada8fe
commit
8e2acc9c90
@ -200,11 +200,11 @@ private:
|
|||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
template<class T>
|
template<class T>
|
||||||
struct hash<gsl::not_null<T *>>
|
struct hash<gsl::not_null<T>>
|
||||||
{
|
{
|
||||||
size_t operator()(const gsl::not_null<T *> & value) const
|
size_t operator()(const gsl::not_null<T> & value) const
|
||||||
{
|
{
|
||||||
return hash<T *>{}(value);
|
return hash<T>{}(value);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user