mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
add mismatch algorithm: robust version (N3607)
This commit is contained in:
parent
c71502f6b6
commit
dce6fff6a4
4 changed files with 424 additions and 7 deletions
|
@ -8,8 +8,8 @@
|
|||
#include <sprout/iterator/type_traits/category.hpp>
|
||||
#include <sprout/iterator/type_traits/common.hpp>
|
||||
#include <sprout/utility/pair/pair.hpp>
|
||||
#include <sprout/algorithm/min.hpp>
|
||||
#include <sprout/functional/less.hpp>
|
||||
#include HDR_ALGORITHM_MIN_MAX_SSCRISK_CEL_OR_SPROUT
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
|
@ -76,7 +76,7 @@ namespace sprout {
|
|||
: first1 == last1 ? true
|
||||
: sprout::detail::lexicographical_compare_impl_ra(
|
||||
first1, last1, first2, last2, comp,
|
||||
sprout::min(sprout::distance(first1, last1), sprout::distance(first2, last2))
|
||||
NS_SSCRISK_CEL_OR_SPROUT::min(sprout::distance(first1, last1), sprout::distance(first2, last2))
|
||||
)
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue