fix minmax_element

This commit is contained in:
Mitsuru Kariya 2013-08-26 12:08:35 +09:00
parent 1ea2ef0aaf
commit 6833b85e2b
2 changed files with 13 additions and 13 deletions

View file

@ -18,9 +18,9 @@
namespace sprout {
namespace detail {
template<typename InputIterator, typename Compare>
inline SPROUT_CONSTEXPR InputIterator
iter_max(InputIterator a, InputIterator b, Compare comp) {
template<typename ForwardIterator, typename Compare>
inline SPROUT_CONSTEXPR ForwardIterator
iter_max(ForwardIterator a, ForwardIterator b, Compare comp) {
return comp(*a, *b) ? b : a;
}