Adds function to ConstString to just get the hash of a value.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4c36946496
commit
209e802699
|
@ -47,6 +47,9 @@
|
||||||
} \
|
} \
|
||||||
inline constexpr bool operator==(const char* rhs) const { return _hash == Hash(rhs); } \
|
inline constexpr bool operator==(const char* rhs) const { return _hash == Hash(rhs); } \
|
||||||
inline constexpr bool operator!=(const char* rhs) const { return _hash != Hash(rhs); } \
|
inline constexpr bool operator!=(const char* rhs) const { return _hash != Hash(rhs); } \
|
||||||
|
\
|
||||||
|
inline static constexpr uint32_t GetHash(const char* val) { return Hash(val); } \
|
||||||
|
inline static STDSTRINGCONSTEXPR uint32_t GetHash(const std::string& val) { return Hash(val.c_str()); } \
|
||||||
}; \
|
}; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
|
Loading…
Reference in New Issue