fb80ee161e97173c0fedfe9ed1159f683976063b
[libcds.git] / tests / test-hdr / set / hdr_intrusive_multilevel_hashset_hp.cpp
1 //$$CDS-header$$
2
3 #include "set/hdr_intrusive_multilevel_hashset.h"
4 #include <cds/intrusive/multilevel_hashset_hp.h>
5
6 namespace set {
7     namespace {
8         typedef cds::gc::HP gc_type;
9     } // namespace
10
11     void IntrusiveMultiLevelHashSetHdrTest::hp_stdhash()
12     {
13         typedef size_t hash_type;
14
15         struct traits: public ci::multilevel_hashset::traits
16         {
17             typedef get_hash<hash_type> hash_accessor;
18         };
19         typedef ci::MultiLevelHashSet< gc_type, Item<hash_type>, traits > set_type;
20         test_hp<set_type>();
21
22         typedef ci::MultiLevelHashSet< 
23             gc_type, 
24             Item<hash_type>, 
25             typename ci::multilevel_hashset::make_traits<
26                 ci::multilevel_hashset::hash_accessor< get_hash<hash_type>>
27             >::type
28         > set_type2;
29         test_hp<set_type2>();
30     }
31 } // namespace set
32
33 CPPUNIT_TEST_SUITE_REGISTRATION(set::IntrusiveMultiLevelHashSetHdrTest);