Add HashMap::items to access item list

This commit is contained in:
Maxime Coste 2018-06-28 19:49:45 +10:00
parent d6b0297ac8
commit c9cdae4364

View File

@ -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<typename KeyType, typename = EnableIfHashCompatible<KeyType>>
constexpr iterator find(const KeyType& key)
{