syclreference.com
  1. SYCL
  2. | API Reference
  3. | Accessors
  4. | hash>

hash<cl::sycl::accessor<elemT, kDims, kMode, kTarget, isPlaceholder>>

provides a specialization for std::hash for the buffer 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()

struct std::hash;

Member Functions

operator()

enables calling an std::hash object as a function with the object to be hashed as a parameter

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000