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());