![]() |
TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
A struct to represent a node in the Binary Search Tree. More...
Public Member Functions | |
| bst_node (T _value) | |
Public Attributes | |
| T | value |
| std::unique_ptr< bst_node > | left |
| std::unique_ptr< bst_node > | right |
A struct to represent a node in the Binary Search Tree.
Definition at line 25 of file binary_search_tree2.cpp.
|
inlineexplicit |
Constructor for bst_node, used to simplify node construction and smart pointer construction.
| _value | The value of the constructed node. |
Definition at line 35 of file binary_search_tree2.cpp.
| std::unique_ptr<bst_node> binary_search_tree< T >::bst_node::left |
Pointer to left subtree.
Definition at line 27 of file binary_search_tree2.cpp.
| std::unique_ptr<bst_node> binary_search_tree< T >::bst_node::right |
Pointer to right subtree.
Definition at line 28 of file binary_search_tree2.cpp.
| T binary_search_tree< T >::bst_node::value |
The value/key of the node.
Definition at line 26 of file binary_search_tree2.cpp.