3 #ifndef __CDSTEST_SIZE_CHECK_H
4 #define __CDSTEST_SIZE_CHECK_H
6 #include <cds/cxx11_atomic.h>
10 template <typename ItemCounter>
12 template <typename Container>
13 bool operator()( Container const& c, size_t nSize ) const
15 return c.size() == nSize;
20 struct size_checker< cds::atomicity::empty_item_counter > {
21 template <typename Container>
22 bool operator()( Container const& /*c*/, size_t /*nSize*/ ) const
28 template <class Container>
29 static inline bool check_size( Container const& cont, size_t nSize )
31 return size_checker<typename Container::item_counter>()( cont, nSize );
36 #endif // #ifndef __CDSTEST_SIZE_CHECK_H