diff options
Diffstat (limited to 'libcxx/test/std/algorithms/alg.nonmodifying')
3 files changed, 9 insertions, 17 deletions
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp index 4e4f889..ea4270e 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp @@ -51,7 +51,7 @@ struct S { }; struct eq { - bool operator()(const S& a, const S& b) const { return a.i_ == b.i_; } + bool operator()(const S& a, const S&b) { return a.i_ == b.i_; } }; diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/search_n_pred.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/search_n_pred.pass.cpp index 2fa3e9f..3bf72e3 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/search_n_pred.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/search_n_pred.pass.cpp @@ -32,13 +32,12 @@ TEST_CONSTEXPR bool test_constexpr() { } #endif -struct count_equal { - static unsigned count; - template <class T> - bool operator()(const T& x, const T& y) const { - ++count; - return x == y; - } +struct count_equal +{ + static unsigned count; + template <class T> + bool operator()(const T& x, const T& y) + {++count; return x == y;} }; unsigned count_equal::count = 0; diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/search_pred.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/search_pred.pass.cpp index cfb82f3..f835d2f 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/search_pred.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/search_pred.pass.cpp @@ -36,15 +36,8 @@ struct count_equal { static unsigned count; template <class T> - bool operator()(const T& x, const T& y) & { - ++count; - return x == y; - }; - template <class T> - bool operator()(const T& x, const T& y) const& { - ++count; - return x == y; - }; + bool operator()(const T& x, const T& y) + {++count; return x == y;} }; unsigned count_equal::count = 0; |