11 Mar
2026
11 Mar
'26
12:07 p.m.
On 3/9/26 23:08, Peter Taraba via Boost wrote:
Supports any std::is_arithmetic<T> type (int, float, double, etc.)
I don't think I've ever sorted a container of plain numbers in a real program. However, I have sorted by complex objects by their numeric attributes fairly often, i.e.: struct my_complex_type { std::string name; int z; }; std::vector<my_complex_type> my_vector; std::sort( my_vector.begin(), my_vector.end(), [](auto const &a, auto const &b) { return a.z < b.z; }); Can statsort work with this kind of object? -- Rainer Deyke - rainerd@eldwood.com