| 4741 | */ |
| 4742 | template <std::size_t bitset_bits_, typename char_type_> |
| 4743 | void hashes_fingerprint( // |
| 4744 | basic_string_slice<char_type_> const &str, std::size_t window_length, |
| 4745 | std::bitset<bitset_bits_> &fingerprint) noexcept { |
| 4746 | constexpr std::size_t fingerprint_bytes = sizeof(std::bitset<bitset_bits_>); |
| 4747 | return sz_hashes_fingerprint(str.data(), str.size(), window_length, (sz_ptr_t)&fingerprint, fingerprint_bytes); |
| 4748 | } |
| 4749 | |
| 4750 | /** |
| 4751 | * @brief Computes the Rabin-Karp-like rolling binary fingerprint of a string. |