… | |
… | |
37 | #include <new> |
37 | #include <new> |
38 | #include <vector> |
38 | #include <vector> |
39 | |
39 | |
40 | #include <glib.h> |
40 | #include <glib.h> |
41 | |
41 | |
|
|
42 | #include <flat_hash_map.hpp> |
|
|
43 | |
42 | #include <shstr.h> |
44 | #include <shstr.h> |
43 | #include <traits.h> |
45 | #include <traits.h> |
44 | |
46 | |
45 | #if DEBUG_SALLOC |
47 | #if DEBUG_SALLOC |
46 | # define g_slice_alloc0(s) debug_slice_alloc0(s) |
48 | # define g_slice_alloc0(s) debug_slice_alloc0(s) |
… | |
… | |
617 | |
619 | |
618 | std::size_t operator ()(const shstr &s) const |
620 | std::size_t operator ()(const shstr &s) const |
619 | { |
621 | { |
620 | return strhsh (s); |
622 | return strhsh (s); |
621 | } |
623 | } |
|
|
624 | |
|
|
625 | typedef ska::power_of_two_hash_policy hash_policy; |
622 | }; |
626 | }; |
623 | |
627 | |
624 | struct str_equal |
628 | struct str_equal |
625 | { |
629 | { |
626 | bool operator ()(const char *a, const char *b) const |
630 | bool operator ()(const char *a, const char *b) const |