diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-01-06 22:25:09 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-01-06 22:25:09 +0100 |
commit | e18b054779766269a4b9ca68729c380d24c0535d (patch) | |
tree | d26e8e4dcfefbfcbe3e1d9066954d99d239e33d4 /asl/string.hpp | |
parent | 48f7e22d9cc93989173afe2550fcc2f082c61773 (diff) |
Some more work on hashing
Diffstat (limited to 'asl/string.hpp')
-rw-r--r-- | asl/string.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/asl/string.hpp b/asl/string.hpp index 86fc304..fbeffe5 100644 --- a/asl/string.hpp +++ b/asl/string.hpp @@ -57,6 +57,12 @@ public: { return as_string_view() == other; } + + template<typename H> + friend H AslHashValue(H h, const string& str) + { + return H::combine(h, str.as_string_view()); + } }; string() -> string<>; |