blob: 6a39df291f0c706a530c59c836a223dccb607a91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef __OCL_CORE_BASIC_HASH
#define __OCL_CORE_BASIC_HASH
#include <ocl/detail/config.hpp>
/// @brief OCL equivalence namespace.
namespace ocl
{
template <class T>
struct basic_hash final
{
using result_type = typename T::result_type;
using type = T;
// AMLALE: If it throws, we can't compute the hash correctly.
constexpr result_type hash() noexcept
{
return type{}.hash();
}
};
}
#endif
|