From 795c24da5772bd708579e50d6e6dfa148f7f27e5 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:03:48 -0400 Subject: [PATCH] added namespace --- data_structures/trie_tree.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/data_structures/trie_tree.cpp b/data_structures/trie_tree.cpp index ea2ce60c4..37916a20d 100644 --- a/data_structures/trie_tree.cpp +++ b/data_structures/trie_tree.cpp @@ -13,10 +13,14 @@ #include #include +/** \namespace data_structure + * \brief Data-structure algorithms + */ +namespace data_structure { static constexpr uint8_t NUM_CHARS = 26; ///< Number of characters /** - * @brief Trie class implementation + * @brief Trie tree implementation for small-case English alphabets `a-z` * @note the function ::trie::deleteString might be erroneous * @todo review the function ::trie::deleteString and the commented lines */ @@ -145,13 +149,14 @@ class trie { return false; } }; +} // namespace data_structure /** * @brief Testing function * @returns void */ static void test() { - trie root; + data_structure::trie root; root.insert("hello"); root.insert("world");