Is there a way to easily handle functions returning std::pairs?
With structured binding from C++17, you may directly do auto [lhsMinIt, lhsMaxIt] = std::minmax_element(lhs.begin(), lhs.end());
With structured binding from C++17, you may directly do auto [lhsMinIt, lhsMaxIt] = std::minmax_element(lhs.begin(), lhs.end());