Why std::ranges::min_element
returns an iterator instead of just the value?
2
std::ranges::min
returns the value. The _element
variants are for when you want an iterator, not just the value.
Why std::ranges::min_element
returns an iterator instead of just the value?
2
std::ranges::min
returns the value. The _element
variants are for when you want an iterator, not just the value.