18 #ifndef PSTORE_CORE_HAMT_MAP_FWD_HPP 19 #define PSTORE_CORE_HAMT_MAP_FWD_HPP 39 template <
typename Database,
typename Container,
typename Iterator>
42 range (Database & d, Container & c)
46 Iterator
begin ()
const {
return c_.begin (db_); }
48 Iterator
end ()
const {
return c_.end (db_); }
55 template <
typename KeyType,
typename ValueType,
typename Hash = std::hash<KeyType>,
56 typename KeyEqual = std::equal_to<KeyType>>
59 template <
typename KeyType,
typename Hash = std::hash<KeyType>,
60 typename KeyEqual = std::equal_to<KeyType>>
65 #endif // PSTORE_CORE_HAMT_MAP_FWD_HPP This class provides a common base from which each of the real index types derives.
Definition: hamt_map_fwd.hpp:29
auto index(gsl::czstring str, std::size_t pos) -> gsl::czstring
Returns a pointer to the beginning of the pos'th UTF-8 codepoint in the buffer at str or nullptr if e...
Definition: utf.cpp:49
Iterator end() const
Returns an iterator to the end of the container.
Definition: hamt_map_fwd.hpp:48
Definition: hamt_map_fwd.hpp:61
A Hash array mapped trie index type for the pstore.
Definition: hamt_map.hpp:48
The begin() and end() functions for both hamt_map and hamt_set take an extra parameter – the owning ...
Definition: hamt_map_fwd.hpp:40
Iterator begin() const
Returns an iterator to the beginning of the container.
Definition: hamt_map_fwd.hpp:46
Definition: nonpod2.cpp:40