roo_collections
API Documentation for roo_collections
Loading...
Searching...
No Matches
flat_small_hash_set.h
Go to the documentation of this file.
1#pragma once
2
3/// @file
4/// @brief Flat, memory-conscious hash set aliases.
5/// @ingroup roo_collections
6
7#include <functional>
8
10
11namespace roo_collections {
12
13/// @brief Flat, memory-conscious hash set optimized for small collections.
14///
15/// Stores keys in a single backing array and provides average constant-time
16/// lookup/insert/erase.
17///
18/// @tparam Key Stored key type.
19/// @tparam HashFn Hash function type.
20/// @tparam KeyCmpFn Equality predicate type.
21template <typename Key, typename HashFn = DefaultHashFn<Key>,
22 typename KeyCmpFn = std::equal_to<Key>>
25
26/// @brief String-specialized flat hash set with heterogeneous lookup support.
27///
28/// Accepts `std::string`, `const char*`, `roo::string_view`, and Arduino
29/// `String` (when available) for lookup operations.
31 FlatSmallHashtable<std::string, std::string, TransparentStringHashFn,
33
34} // namespace roo_collections
Flat, memory-conscious hash table optimized for small collections.
Flat, memory-conscious hash table implementation.