I have a std::vector of this struct:
struct MS { double aT; double bT; double cT; };
which I want to use std::sort on aswell
The algorithms std::sort, std::lower_bound, and std::binary_search take a predicate that compares two elements of the container. Any lambda that compares two MS objects and returns true when they are in order should work for all three algorithms.
true