3 #ifndef CDSLIB_CONTAINER_STRIPED_SET_BOOST_UNORDERED_SET_ADAPTER_H
4 #define CDSLIB_CONTAINER_STRIPED_SET_BOOST_UNORDERED_SET_ADAPTER_H
6 #include <cds/container/striped_set/adapter.h>
7 #include <boost/unordered_set.hpp>
10 namespace cds { namespace container {
11 namespace striped_set {
13 // Copy policy for boost::unordered_set
14 template <typename T, typename Traits, typename Alloc>
15 struct copy_item_policy< boost::unordered_set< T, Traits, Alloc > >
16 : public details::boost_set_copy_policies< boost::unordered_set< T, Traits, Alloc > >::copy_item_policy
19 template <typename T, typename Traits, typename Alloc>
20 struct swap_item_policy< boost::unordered_set< T, Traits, Alloc > >
21 : public details::boost_set_copy_policies< boost::unordered_set< T, Traits, Alloc > >::swap_item_policy
24 // Move policy for boost::unordered_set
25 template <typename T, typename Traits, typename Alloc>
26 struct move_item_policy< boost::unordered_set< T, Traits, Alloc > >
27 : public details::boost_set_copy_policies< boost::unordered_set< T, Traits, Alloc > >::move_item_policy
29 } // namespace striped_set
30 }} // namespace cds::container
32 namespace cds { namespace intrusive { namespace striped_set {
33 /// boost::unordered_set adapter for hash set bucket
34 template <typename T, class Traits, class Alloc, typename... Options>
35 class adapt< boost::unordered_set<T, Traits, Alloc>, Options... >
38 typedef boost::unordered_set<T, Traits, Alloc> container_type ; ///< underlying container type
39 typedef cds::container::striped_set::details::boost_set_adapter< container_type, Options... > type;
41 }}} // namespace cds::intrusive::striped_set
45 #endif // #ifndef CDSLIB_CONTAINER_STRIPED_SET_BOOST_UNORDERED_SET_ADAPTER_H