From 1e8006ebb80502e531f61c13f2e9a9a6b4af27ab Mon Sep 17 00:00:00 2001 From: Max Wipfli Date: Sun, 6 Jun 2021 19:24:26 +0200 Subject: [PATCH] AK: Add children() accessor to Trie --- AK/Trie.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AK/Trie.h b/AK/Trie.h index c0e96bd4fd5..1c289bfadc0 100644 --- a/AK/Trie.h +++ b/AK/Trie.h @@ -179,6 +179,9 @@ public: return insert(it, end); } + HashMap, ValueTraits>& children() { return m_children; } + HashMap, ValueTraits> const& children() const { return m_children; } + ConstIterator begin() const { return ConstIterator(*this); } ConstIterator end() const { return ConstIterator::end(); }