/* btree.cpp * Date: 2021-11-22 * Author: Aryadev Chavali */ enum Order { LT, GT, EQ }; template struct BinaryTree { T value; BinaryTree *left, *right; enum Order (*compare)(T, T); ~BinaryTree() { delete left; delete right; } };