System::GetHashCode method

System::GetHashCode(const std::thread::id&) method

Specialization for std::thread::id; Returns the hash code for the specified thread object.

int System::GetHashCode(const std::thread::id &id)

See Also

System::GetHashCode(const T&) method

Returns a hash code for the specified scalar value.

template<typename T> std::enable_if<std::is_scalar<T>::value, int>::type System::GetHashCode(const T &obj)
ParameterDescription
TThe type of the value for which the function generates hash code
ParameterTypeDescription
objconst T&The value to generate hash code for

ReturnValue

The hash code generated for the specified value

See Also

System::GetHashCode(const T&) method

Returns a hash code for the specified object.

template<typename T> std::enable_if<!std::is_scalar<T>::value &&System::IsSmartPtr<T>::value, int>::type System::GetHashCode(const T &obj)
ParameterDescription
TThe type of the object for which the function generates hash code
ParameterTypeDescription
objconst T&The SmartPtr pointing to the object to generate hash code for

ReturnValue

The hash code generated for the specified object

See Also

System::GetHashCode(const T&) method

Returns a hash code for the specified object which is exception.

template<typename T> std::enable_if<System::IsExceptionWrapper<T>::value, int>::type System::GetHashCode(const T &obj)
ParameterDescription
TThe type of the object for which the function generates hash code
ParameterTypeDescription
objconst T&The Exception Wrapper that contains the object to generate hash code for

ReturnValue

The hash code generated for the specified object

See Also

System::GetHashCode(const T&) method

Returns a hash code for the specified object which is not a smart pointer nor exception.

template<typename T> std::enable_if<!std::is_scalar<T>::value &&!System::IsSmartPtr<T>::value &&!System::IsExceptionWrapper<T>::value, int>::type System::GetHashCode(const T &obj)
ParameterDescription
TThe type of the object for which the function generates hash code
ParameterTypeDescription
objconst T&A const reference to the object to generate hash code for

ReturnValue

The hash code generated for the specified object

See Also