ref #28 "fix typo error (hask to hash)"

This commit is contained in:
Andrei Yankovich 2021-04-26 21:19:49 +03:00
parent da3b928e63
commit c7968c3f5f

View File

@ -97,10 +97,10 @@ constexpr inline T operator ^ (T lhs, T rhs)
template<class T> 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). * 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. * @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 { uint32_t static_type_hash_32() noexcept {
return typeid (T).hash_code(); return typeid (T).hash_code();
@ -108,10 +108,10 @@ uint32_t static_type_hash_32() noexcept {
template<class T> 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). * 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. * @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 { uint16_t static_type_hash_16() noexcept {
return typeid (T).hash_code() % 0xFFFF; return typeid (T).hash_code() % 0xFFFF;
@ -119,10 +119,10 @@ uint16_t static_type_hash_16() noexcept {
template<class T> 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). * 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. * @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 { uint8_t static_type_hash_8() noexcept {
return typeid (T).hash_code() % 0xFF; 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. * @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. * @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 { uint32_t static_type_hash_32(T& object) noexcept {
return typeid (object).hash_code(); 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. * @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. * @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 { uint16_t static_type_hash_16(T& object) noexcept {
return typeid (object).hash_code() % 0xFFFF; 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. * @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. * @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 { uint8_t static_type_hash_8(T& object) noexcept {
return typeid (object).hash_code() % 0xFF; return typeid (object).hash_code() % 0xFF;