AK: Add children() accessor to Trie

This commit is contained in:
Max Wipfli 2021-06-06 19:24:26 +02:00 committed by Andreas Kling
parent e8a317023d
commit 1e8006ebb8
Notes: sideshowbarker 2024-07-18 12:38:14 +09:00

View file

@ -179,6 +179,9 @@ public:
return insert(it, end);
}
HashMap<ValueType, NonnullOwnPtr<Trie>, ValueTraits>& children() { return m_children; }
HashMap<ValueType, NonnullOwnPtr<Trie>, ValueTraits> const& children() const { return m_children; }
ConstIterator begin() const { return ConstIterator(*this); }
ConstIterator end() const { return ConstIterator::end(); }