std::hash< cl::sycl::platform > Struct Template Reference
provides a specialization for std::hash for the platform class. More...
#include <platform.h>
Public Member Functions | |
size_t | operator() (const cl::sycl::platform &object) const |
enables calling an std::hash object as a function with the object to be hashed as a parameter More... | |
Detailed Description
template<>
struct std::hash< cl::sycl::platform >
provides a specialization for std::hash for the platform class.
An std::hash<std::shared_ptr<...>> object is created and its function call operator is used to hash the contents of the shared_ptr. The returned hash is actually the result of (size_t) object.get_impl().get()
Definition at line 338 of file platform.h.
Member Function Documentation
◆ operator()()
|
inline |
enables calling an std::hash object as a function with the object to be hashed as a parameter
- Parameters
-
object the object to be hashed
- Template Parameters
-
std the std namespace where this specialization resides
Definition at line 346 of file platform.h.
The documentation for this struct was generated from the following file: