Finds the last position where an element based upon a key would be inserted.
iterator upper_bound(const key_type& x); const_iterator upper_bound(const key_type &x) const;
Returns the last position where an element would be inserted.