| 80 | // it is possible to make the order an parameter when constructing SortObj, but this is a bit more efficient |
| 81 | if (increasing_order) { |
| 82 | struct SortIncreasing { |
| 83 | bool operator()(const std::pair<int, double>& a, const std::pair<int, double>& b) { |
| 84 | return a.first < b.first; |
| 85 | } |
| 86 | }; |
| 87 | std::sort(coeffs.begin(), coeffs.end(), SortIncreasing()); |
| 88 | } |
| 89 | else { |
no outgoing calls
no test coverage detected