summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/counting_predicates.hpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-10-18 11:03:33 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-10-18 11:03:33 +0000
commitc8528b5001f121449470d57caa7bc06cc81e7bfc (patch)
tree4a1431fb5184d0d2bb6b227ecdb789e6b5b491c2 /libcxx/test/support/counting_predicates.hpp
parentbe9dccd64d25227832f9cf0c1775acfa072be529 (diff)
downloadbcm5719-llvm-c8528b5001f121449470d57caa7bc06cc81e7bfc.tar.gz
bcm5719-llvm-c8528b5001f121449470d57caa7bc06cc81e7bfc.zip
Whitespace maintenance. Remove a bunch of tabs that snuck in. No functionality change
llvm-svn: 220142
Diffstat (limited to 'libcxx/test/support/counting_predicates.hpp')
-rw-r--r--libcxx/test/support/counting_predicates.hpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/libcxx/test/support/counting_predicates.hpp b/libcxx/test/support/counting_predicates.hpp
index e825848fc48..aab6a978577 100644
--- a/libcxx/test/support/counting_predicates.hpp
+++ b/libcxx/test/support/counting_predicates.hpp
@@ -14,33 +14,33 @@
template <typename Predicate, typename Arg>
struct unary_counting_predicate : public std::unary_function<Arg, bool> {
public:
- unary_counting_predicate(Predicate p) : p_(p), count_(0) {}
- ~unary_counting_predicate() {}
-
- bool operator () (const Arg &a) const { ++count_; return p_(a); }
- size_t count() const { return count_; }
- void reset() { count_ = 0; }
-
+ unary_counting_predicate(Predicate p) : p_(p), count_(0) {}
+ ~unary_counting_predicate() {}
+
+ bool operator () (const Arg &a) const { ++count_; return p_(a); }
+ size_t count() const { return count_; }
+ void reset() { count_ = 0; }
+
private:
- Predicate p_;
- mutable size_t count_;
- };
+ Predicate p_;
+ mutable size_t count_;
+ };
template <typename Predicate, typename Arg1, typename Arg2=Arg1>
struct binary_counting_predicate : public std::binary_function<Arg1, Arg2, bool> {
public:
- binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {}
- ~binary_counting_predicate() {}
-
- bool operator () (const Arg1 &a1, const Arg2 &a2) const { ++count_; return p_(a1, a2); }
- size_t count() const { return count_; }
- void reset() { count_ = 0; }
+ binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {}
+ ~binary_counting_predicate() {}
+
+ bool operator () (const Arg1 &a1, const Arg2 &a2) const { ++count_; return p_(a1, a2); }
+ size_t count() const { return count_; }
+ void reset() { count_ = 0; }
private:
- Predicate p_;
- mutable size_t count_;
- };
+ Predicate p_;
+ mutable size_t count_;
+ };
#endif // __COUNTING_PREDICATES_H
OpenPOWER on IntegriCloud