System::GetHashCode method
Contents
[
Hide
]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
- Namespace System
- Library Aspose.PDF for C++
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)
Parameter | Description |
---|---|
T | The type of the value for which the function generates hash code |
Parameter | Type | Description |
---|---|---|
obj | const T& | The value to generate hash code for |
ReturnValue
The hash code generated for the specified value
See Also
- Namespace System
- Library Aspose.PDF for C++
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)
Parameter | Description |
---|---|
T | The type of the object for which the function generates hash code |
Parameter | Type | Description |
---|---|---|
obj | const T& | The SmartPtr pointing to the object to generate hash code for |
ReturnValue
The hash code generated for the specified object
See Also
- Namespace System
- Library Aspose.PDF for C++
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)
Parameter | Description |
---|---|
T | The type of the object for which the function generates hash code |
Parameter | Type | Description |
---|---|---|
obj | const T& | The Exception Wrapper that contains the object to generate hash code for |
ReturnValue
The hash code generated for the specified object
See Also
- Namespace System
- Library Aspose.PDF for C++
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)
Parameter | Description |
---|---|
T | The type of the object for which the function generates hash code |
Parameter | Type | Description |
---|---|---|
obj | const T& | A const reference to the object to generate hash code for |
ReturnValue
The hash code generated for the specified object
See Also
- Namespace System
- Library Aspose.PDF for C++