Header-only distribution
Add include/ to the compiler include path and start using the tree without a library build step.
This site introduces the BinarySearchTree.h library, shows how to get it into a project, and provides a browsable API reference for developers who want a simple, readable Binary Search Tree.
BinarySearchTree is a header-only C++17 container for unique values stored in comparator order.
It uses std::unique_ptr for node ownership, exposes bidirectional iterators, and intentionally keeps
the implementation approachable for learning and small projects.
Add include/ to the compiler include path and start using the tree without a library build step.
Use BinarySearchTree<T, Compare> to define sort order without rewriting the container.
Insertion, lookup, erase, bounds, iterators, and traversal helpers follow familiar naming and behavior.
The API reference and guides are structured for scanning code, checking complexity, and finding examples quickly.
This is a plain Binary Search Tree, not a self-balancing AVL or Red-Black tree.
Sorted or nearly sorted insertion orders can produce a tall tree and degrade average behavior to worst-case O(N).