mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 02:24:51 +03:00
Add HashMap::items to access item list
This commit is contained in:
parent
d6b0297ac8
commit
c9cdae4364
@ -272,6 +272,8 @@ struct HashMap
|
|||||||
constexpr const_iterator begin() const { return m_items.begin(); }
|
constexpr const_iterator begin() const { return m_items.begin(); }
|
||||||
constexpr const_iterator end() const { return m_items.end(); }
|
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>>
|
template<typename KeyType, typename = EnableIfHashCompatible<KeyType>>
|
||||||
constexpr iterator find(const KeyType& key)
|
constexpr iterator find(const KeyType& key)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user