summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/intrusive/test/avl_test_common.hpp
blob: eed1659dd9b75c176fd953398e81ba0a710ea01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga  2015-2015.
//
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/intrusive for documentation.
//
/////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_INTRUSIVE_TEST_AVL_TEST_COMMON_HPP
#define BOOST_INTRUSIVE_TEST_AVL_TEST_COMMON_HPP

#include <boost/intrusive/avl_set_hook.hpp>
#include <boost/intrusive/detail/mpl.hpp>
#include "bs_test_common.hpp"

namespace boost {
namespace intrusive {

template<class VoidPointer>
struct avl_hooks
{
   typedef avl_set_base_hook<void_pointer<VoidPointer> >    base_hook_type;
   typedef avl_set_base_hook
      <link_mode<auto_unlink>
      , void_pointer<VoidPointer>
      , tag<void>
      , optimize_size<true> >                               auto_base_hook_type;
   typedef avl_set_member_hook
      <void_pointer<VoidPointer>
      , optimize_size<true> >                               member_hook_type;
   typedef avl_set_member_hook
      < link_mode<auto_unlink>
      , void_pointer<VoidPointer> >                         auto_member_hook_type;
   typedef nonhook_node_member< avltree_node_traits<VoidPointer>,
                                avltree_algorithms
                              > nonhook_node_member_type;
};

}  //namespace intrusive {
}  //namespace boost {

#endif   //BOOST_INTRUSIVE_TEST_AVL_TEST_COMMON_HPP