I will define a class and use a container (possibly std::set) with a custom comparator function (basically, raw integer comparison on a class member variable). I wish to know if I can somehow keep this set std::sorted and use std::find_if with logarithmic performance instead of naive linear searching.
Thanks in advance.