#ifndef SPROUT_RANGE_ALGORITHM_MISMATCH_HPP #define SPROUT_RANGE_ALGORITHM_MISMATCH_HPP #include #include #include #include #include #include namespace sprout { namespace range { // Copyright (C) 2011 RiSK (sscrisk) // 25.2.10 Mismatch template SPROUT_CONSTEXPR sprout::pair< typename sprout::range::lvref_iterator::type, typename sprout::range::lvref_iterator::type > mismatch(Range1&& range1, Range2&& range2) { return sprout::mismatch( sprout::begin(sprout::forward(range1)), sprout::end(sprout::forward(range1)), sprout::begin(sprout::forward(range2)) ); } template SPROUT_CONSTEXPR sprout::pair< typename sprout::range::lvref_iterator::type, typename sprout::range::lvref_iterator::type > mismatch(Range1&& range1, Range2&& range2, BinaryPredicate pred) { return sprout::mismatch( sprout::begin(sprout::forward(range1)), sprout::end(sprout::forward(range1)), sprout::begin(sprout::forward(range2)), pred ); } } // namespace range } // namespace sprout #endif // #ifndef SPROUT_RANGE_ALGORITHM_MISMATCH_HPP