Any O(log n) find time complexity datastructure that is not a map?

Any O(log n) find time complexity datastructure that is not a map.
An ordered tree comes to mind as a datastructure that can be searched in O(log n) time.
a sorted vector / binary search.
An ordered tree comes to mind
std::map is usually implemented as a red-black tree.
A set. More specificallym, std::set is a red-black tree and std::map is basically a std::set<std::pair<key,value>>

If you're actually looking for something faster than O(log N) then consider a hash table (unordered_set)
How often do you need to add or remove elements from the data structure?
Topic archived. No new replies allowed.