I know that in Binary Search Tree the elements are inserted based on there properties of inequality i.e:
if(n->val > val) insert(n->left, val); // root node greater then val insert to left
else if(n->val < val) insert(n->right, val); // root node less then val insert to left
// I am ignoring the case when n->val == val here
I was curious on what basis should I insert the node into the pure (vanilla) binary tree, if there is one or do all the binary tree come with some extra property (binary search tree with its inequalities).
std::setand let it do the insertions for you.