// // Created by PC on 25-8-6. // #ifndef BINARYTREENODE_H #define BINARYTREENODE_H template class binaryTreeNode { public: T element; binaryTreeNode* left; binaryTreeNode* right; public: binaryTreeNode() {left = right = nullptr;} explicit binaryTreeNode(const T& e) : element(e), left(nullptr), right(nullptr) {} binaryTreeNode(const T& e, binaryTreeNode* l, binaryTreeNode* r) : element(e), left(l), right(r) {} ~binaryTreeNode() = default; }; #endif //BINARYTREENODE_H