I am storing a struct inside set . The struct contains five variables, including an ID.
struct car{int ID;.....}
set<car>s;
I want to delete a car from the set given a particular ID. Suppose ID is x , then delete that car which has ID has x.(All car IDs are distinct no duplicates).
Is it possible to do it in O(log n) time ?