title: Does C++ have a standard way to do a tristate comparison of two std::sets, vectors, etc?
body: <p>Is there an equivalent to <a href="http://www.cplusplus.com/reference/string/string/compare/" rel="nofollow noreferrer">std::string::compare</a> for other std types, such as std::set? I'm looking for a built-in algorithm that can do the comparison just once and give me something like -1, 0, 1 for less than, equal, greater than, respectively. </p>