TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
Loading...
Searching...
No Matches
others::recursive_tree_traversals::Node Struct Reference

The structure to hold Nodes of the tree. More...

Collaboration diagram for others::recursive_tree_traversals::Node:
[legend]

Public Attributes

std::uint64_t data = 0
 The value/key of the node.
 
struct Nodeleft {}
 struct pointer to left subtree.
 
struct Noderight {}
 struct pointer to right subtree.
 

Detailed Description

The structure to hold Nodes of the tree.

Parameters
dataValue that will be stored in the node.
leftfollow up left subtree.
rightfollow up right subtree.

Definition at line 79 of file recursive_tree_traversal.cpp.

Member Data Documentation

◆ data

std::uint64_t others::recursive_tree_traversals::Node::data = 0

The value/key of the node.

Definition at line 80 of file recursive_tree_traversal.cpp.

◆ left

struct Node* others::recursive_tree_traversals::Node::left {}

struct pointer to left subtree.

Definition at line 81 of file recursive_tree_traversal.cpp.

81{};

◆ right

struct Node* others::recursive_tree_traversals::Node::right {}

struct pointer to right subtree.

Definition at line 82 of file recursive_tree_traversal.cpp.

82{};

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