From c9cdae4364077104583cf49535b78e1b989d3f21 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 28 Jun 2018 19:49:45 +1000 Subject: [PATCH] Add HashMap::items to access item list --- src/hash_map.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hash_map.hh b/src/hash_map.hh index 5a144ca1f..fb9da408f 100644 --- a/src/hash_map.hh +++ b/src/hash_map.hh @@ -272,6 +272,8 @@ struct HashMap constexpr const_iterator begin() const { return m_items.begin(); } constexpr const_iterator end() const { return m_items.end(); } + const Item& item(size_t index) const { return m_items[index]; } + template> constexpr iterator find(const KeyType& key) {