5#include <system/object.h>
6#include <system/shared_ptr.h>
7#include <system/details/hash_function.h>
20typename std::enable_if<std::is_scalar<T>::value,
int>::type
23 return static_cast<int>(System::Details::Hash_Meiyan(
reinterpret_cast<const char*
>(&obj),
sizeof(obj)));
34 return obj->GetHashCode();
42typename std::enable_if<System::IsExceptionWrapper<T>::value,
int>::type
45 return obj->GetHashCode();
56 return obj.GetHashCode();
64 std::hash<std::thread::id> hash;
65 return ASPOSECPP_CHECKED_CAST(
int, hash(
id));
Definition: db_command.h:9
std::enable_if< std::is_scalar< T >::value, int >::type GetHashCode(const T &obj)
Returns a hash code for the specified scalar value.
Definition: get_hash_code.h:21
A template predicate that determines if the specified type is a Exception class or its descendant.
Definition: object.h:405
Trait class to check if a type is a specialization of SmartPtr class.
Definition: smart_ptr.h:1499