CoNLL-U
Loading...
Searching...
No Matches
string_hash.hpp
1/*
2 * CoNLL-U - https://github.com/tugrulgungor/CoNLL-U
3 *
4 * Copyright (c) 2026. All rights reserved.
5 * Tuğrul Güngör - https://conll-u.tugrulgungor.me
6 *
7 * Distributed under the MIT License.
8 * https://opensource.org/license/mit/
9 */
10
11#ifndef TG_CONLLU_INTERNAL_STRING_HASH_HPP
12#define TG_CONLLU_INTERNAL_STRING_HASH_HPP 1
13
14#include <string>
15#include <string_view>
16
17namespace tg::conllu::internal {
18 struct StringHash final {
19 using is_transparent = void;
20
21 constexpr std::size_t operator()(std::string_view sv) const noexcept;
22 constexpr std::size_t operator()(const std::string &s) const noexcept;
23 };
24} // namespace tg::conllu::internal
25
26#include "conllu/internal/impl/string_hash.ipp"
27
28#endif // TG_CONLLU_INTERNAL_STRING_HASH_HPP