mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-06 09:16:33 +02:00
Removed some tabs that snuck in. No functionality change
This commit is contained in:
@ -40,10 +40,10 @@ bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1,
|
|||||||
{
|
{
|
||||||
// How should I deal with the idea that ForwardIterator1::value_type
|
// How should I deal with the idea that ForwardIterator1::value_type
|
||||||
// and ForwardIterator2::value_type could be different? Define my own comparison predicate?
|
// and ForwardIterator2::value_type could be different? Define my own comparison predicate?
|
||||||
std::pair<ForwardIterator1, ForwardIterator2> eq = boost::algorithm::mismatch
|
std::pair<ForwardIterator1, ForwardIterator2> eq = boost::algorithm::mismatch
|
||||||
( first1, last1, first2, last2 );
|
( first1, last1, first2, last2 );
|
||||||
if ( eq.first == last1 && eq.second == last2)
|
if ( eq.first == last1 && eq.second == last2)
|
||||||
return true;
|
return true;
|
||||||
return boost::algorithm::detail::is_permutation_tag (
|
return boost::algorithm::detail::is_permutation_tag (
|
||||||
eq.first, last1, eq.second, last2,
|
eq.first, last1, eq.second, last2,
|
||||||
std::equal_to<typename std::iterator_traits<ForwardIterator1>::value_type> (),
|
std::equal_to<typename std::iterator_traits<ForwardIterator1>::value_type> (),
|
||||||
@ -70,10 +70,10 @@ bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1,
|
|||||||
ForwardIterator2 first2, ForwardIterator2 last2,
|
ForwardIterator2 first2, ForwardIterator2 last2,
|
||||||
BinaryPredicate pred )
|
BinaryPredicate pred )
|
||||||
{
|
{
|
||||||
std::pair<ForwardIterator1, ForwardIterator2> eq = boost::algorithm::mismatch
|
std::pair<ForwardIterator1, ForwardIterator2> eq = boost::algorithm::mismatch
|
||||||
( first1, last1, first2, last2, pred );
|
( first1, last1, first2, last2, pred );
|
||||||
if ( eq.first == last1 && eq.second == last2)
|
if ( eq.first == last1 && eq.second == last2)
|
||||||
return true;
|
return true;
|
||||||
return boost::algorithm::detail::is_permutation_tag (
|
return boost::algorithm::detail::is_permutation_tag (
|
||||||
first1, last1, first2, last2, pred,
|
first1, last1, first2, last2, pred,
|
||||||
typename std::iterator_traits<ForwardIterator1>::iterator_category (),
|
typename std::iterator_traits<ForwardIterator1>::iterator_category (),
|
||||||
|
Reference in New Issue
Block a user