mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-26 09:44:38 +00:00
ref #28 "fix typo error (hask to hash)"
This commit is contained in:
parent
da3b928e63
commit
c7968c3f5f
18
global.h
18
global.h
@ -97,10 +97,10 @@ constexpr inline T operator ^ (T lhs, T rhs)
|
||||
|
||||
template<class T>
|
||||
/**
|
||||
* @brief static_type_hash_32 This function return hask code of the class T.
|
||||
* @brief static_type_hash_32 This function return hash code of the class T.
|
||||
* For get more information see the std [documentation](https://en.cppreference.com/w/cpp/types/type_info/hash_code).
|
||||
* @note This method will create a T object on stack, so if you have a alredy created object use the static_type_hash_32(const T&) function.
|
||||
* @return uint32_t hask code of the class T
|
||||
* @return uint32_t hash code of the class T
|
||||
*/
|
||||
uint32_t static_type_hash_32() noexcept {
|
||||
return typeid (T).hash_code();
|
||||
@ -108,10 +108,10 @@ uint32_t static_type_hash_32() noexcept {
|
||||
|
||||
template<class T>
|
||||
/**
|
||||
* @brief static_type_hash_16 This function return hask code of the class T.
|
||||
* @brief static_type_hash_16 This function return hash code of the class T.
|
||||
* For get more information see the std [documentation](https://en.cppreference.com/w/cpp/types/type_info/hash_code).
|
||||
* @note This method will create a T object on stack, so if you have a alredy created object use the static_type_hash_16(const T&) function.
|
||||
* @return uint16_t hask code of the class T
|
||||
* @return uint16_t hash code of the class T
|
||||
*/
|
||||
uint16_t static_type_hash_16() noexcept {
|
||||
return typeid (T).hash_code() % 0xFFFF;
|
||||
@ -119,10 +119,10 @@ uint16_t static_type_hash_16() noexcept {
|
||||
|
||||
template<class T>
|
||||
/**
|
||||
* @brief static_type_hash_8 This function return hask code of the class T.
|
||||
* @brief static_type_hash_8 This function return hash code of the class T.
|
||||
* For get more information see the std [documentation](https://en.cppreference.com/w/cpp/types/type_info/hash_code).
|
||||
* @note This method will create a T object on stack, so if you have a alredy created object use the static_type_hash_8(const T&) function.
|
||||
* @return uint8_t hask code of the class T
|
||||
* @return uint8_t hash code of the class T
|
||||
*/
|
||||
uint8_t static_type_hash_8() noexcept {
|
||||
return typeid (T).hash_code() % 0xFF;
|
||||
@ -132,7 +132,7 @@ template<class T>
|
||||
/**
|
||||
* @brief static_type_hash_32 This function return hash code of a T type using @a object.
|
||||
* @param object This is object of the T type using for generate hash.
|
||||
* @return uint32_t hask code of the class T
|
||||
* @return uint32_t hash code of the class T
|
||||
*/
|
||||
uint32_t static_type_hash_32(T& object) noexcept {
|
||||
return typeid (object).hash_code();
|
||||
@ -142,7 +142,7 @@ template<class T>
|
||||
/**
|
||||
* @brief static_type_hash_16 This function return hash code of a T type using @a object.
|
||||
* @param object This is object of the T type using for generate hash.
|
||||
* @return uint16_t hask code of the class T
|
||||
* @return uint16_t hash code of the class T
|
||||
*/
|
||||
uint16_t static_type_hash_16(T& object) noexcept {
|
||||
return typeid (object).hash_code() % 0xFFFF;
|
||||
@ -152,7 +152,7 @@ template<class T>
|
||||
/**
|
||||
* @brief static_type_hash_8 This function return hash code of a T type using @a object.
|
||||
* @param object This is object of the T type using for generate hash.
|
||||
* @return uint8_t hask code of the class T
|
||||
* @return uint8_t hash code of the class T
|
||||
*/
|
||||
uint8_t static_type_hash_8(T& object) noexcept {
|
||||
return typeid (object).hash_code() % 0xFF;
|
||||
|
Loading…
x
Reference in New Issue
Block a user