mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 18:26:51 +00:00
clang-tidy fixes: Use std::ranges::minmax_element
This commit is contained in:
@@ -686,7 +686,7 @@ LoanPay::doApply()
|
||||
UNREACHABLE("xrpl::LoanPay::doApply : all zeroes");
|
||||
return 0;
|
||||
}
|
||||
auto const [minItr, maxItr] = std::minmax_element(exponents.begin(), exponents.end());
|
||||
auto const [minItr, maxItr] = std::ranges::minmax_element(exponents);
|
||||
auto const min = *minItr;
|
||||
auto const max = *maxItr;
|
||||
JLOG(j_.trace()) << "Min scale: " << min << ", max scale: " << max;
|
||||
|
||||
Reference in New Issue
Block a user