mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +00:00
fix minmax_element
This commit is contained in:
parent
15e0303f06
commit
d6592a9ce3
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ namespace sprout {
|
|||
iter_minmax(ForwardIteratorPair const& a, ForwardIterator b, Compare comp) {
|
||||
return ForwardIteratorPair(
|
||||
comp(*b, *sprout::first(a)) ? b : sprout::first(a),
|
||||
comp(*sprout::second(b), *a) ? a : sprout::second(b)
|
||||
comp(*b, *sprout::second(a)) ? sprout::second(a) : b
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue