mirror of git://gcc.gnu.org/git/gcc.git
check_type.cc: Minor tweaks.
2011-01-14 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/25_algorithms/is_permutation/check_type.cc: Minor tweaks. * testsuite/25_algorithms/is_permutation/1.cc: Cosmetic changes. From-SVN: r168796
This commit is contained in:
parent
bb127cd84b
commit
a5983012cd
|
@ -1,3 +1,9 @@
|
||||||
|
2011-01-14 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
* testsuite/25_algorithms/is_permutation/check_type.cc: Minor
|
||||||
|
tweaks.
|
||||||
|
* testsuite/25_algorithms/is_permutation/1.cc: Cosmetic changes.
|
||||||
|
|
||||||
2011-01-13 Paolo Carlini <paolo.carlini@oracle.com>
|
2011-01-13 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
* testsuite/25_algorithms/is_permutation/check_type.cc: New.
|
* testsuite/25_algorithms/is_permutation/check_type.cc: New.
|
||||||
|
|
|
@ -29,20 +29,21 @@
|
||||||
using __gnu_test::forward_iterator_wrapper;
|
using __gnu_test::forward_iterator_wrapper;
|
||||||
|
|
||||||
struct X { };
|
struct X { };
|
||||||
|
|
||||||
bool operator==(const X&, const X) { return true; }
|
bool operator==(const X&, const X) { return true; }
|
||||||
bool predicate(const X&, const X&) { return true; }
|
|
||||||
|
struct Y { };
|
||||||
|
bool predicate(const Y&, const Y&) { return true; }
|
||||||
|
|
||||||
bool
|
bool
|
||||||
test1(forward_iterator_wrapper<X>& lhs1,
|
test1(forward_iterator_wrapper<X>& x1,
|
||||||
forward_iterator_wrapper<X>& rhs1)
|
|
||||||
{
|
|
||||||
return std::is_permutation(lhs1, lhs1, rhs1);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
|
||||||
test2(forward_iterator_wrapper<X>& x1,
|
|
||||||
forward_iterator_wrapper<X>& x2)
|
forward_iterator_wrapper<X>& x2)
|
||||||
{
|
{
|
||||||
return std::is_permutation(x1, x1, x2, predicate);
|
return std::is_permutation(x1, x1, x2);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
test2(forward_iterator_wrapper<Y>& y1,
|
||||||
|
forward_iterator_wrapper<Y>& y2)
|
||||||
|
{
|
||||||
|
return std::is_permutation(y1, y1, y2, predicate);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue