Set and Map
Put object in to set/map
Need to define the < operator: 1) Define the '<' operator in the class:
2) Define a functor as argument of the set
Find element in BST
lower_bound(x): iterator to first element >= x upper_bound(x): iterator to first element > x if the element do not exist, return end()
Find first element >= x
Find first element > x
Find last element <= x
Find last element < x
Last updated