TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
Loading...
Searching...
No Matches
Trie::TrieNode Struct Reference
Collaboration diagram for Trie::TrieNode:
[legend]

Public Attributes

std::shared_ptr< TrieNodecharacter [ALPHABETS] {nullptr}
 
bool isEndOfWord {false}
 

Detailed Description

Structure of trie node. This struct doesn't need a constructor as we are initializing using intializer list which is more efficient than if we had done so with constructor.

Definition at line 26 of file trie_modern.cpp.

Member Data Documentation

◆ character

std::shared_ptr<TrieNode> Trie::TrieNode::character[ALPHABETS] {nullptr}

Definition at line 29 of file trie_modern.cpp.

29{nullptr};

◆ isEndOfWord

bool Trie::TrieNode::isEndOfWord {false}

Definition at line 31 of file trie_modern.cpp.

31{false};

The documentation for this struct was generated from the following file: