mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Add children() accessor to Trie
This commit is contained in:
parent
e8a317023d
commit
1e8006ebb8
Notes:
sideshowbarker
2024-07-18 12:38:14 +09:00
Author: https://github.com/MaxWipfli Commit: https://github.com/SerenityOS/serenity/commit/1e8006ebb80 Pull-request: https://github.com/SerenityOS/serenity/pull/7858
1 changed files with 3 additions and 0 deletions
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue