3 // Copyright (c) 2006-2007 Matias Capeletto
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 /// \file container_adaptor/set_adaptor.hpp
10 /// \brief Container adaptor to easily build a std::set signature compatible container.
12 #ifndef BOOST_BIMAP_CONTAINER_ADAPTOR_SET_ADAPTOR_HPP
13 #define BOOST_BIMAP_CONTAINER_ADAPTOR_SET_ADAPTOR_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
21 #include <boost/bimap/container_adaptor/ordered_associative_container_adaptor.hpp>
22 #include <boost/mpl/vector.hpp>
23 #include <boost/mpl/aux_/na.hpp>
27 namespace container_adaptor
{
29 /// \brief Container adaptor to easily build a std::set signature compatible container.
37 class ReverseIterator
,
38 class ConstReverseIterator
,
40 class IteratorToBaseConverter
= ::boost::mpl::na
,
41 class IteratorFromBaseConverter
= ::boost::mpl::na
,
42 class ReverseIteratorFromBaseConverter
= ::boost::mpl::na
,
43 class ValueToBaseConverter
= ::boost::mpl::na
,
44 class ValueFromBaseConverter
= ::boost::mpl::na
,
45 class KeyToBaseConverter
= ::boost::mpl::na
,
47 class FunctorsFromDerivedClasses
= mpl::vector
<>
51 public ::boost::bimaps::container_adaptor::
52 ordered_associative_container_adaptor
55 Iterator
, ConstIterator
, ReverseIterator
, ConstReverseIterator
,
56 BOOST_DEDUCED_TYPENAME
Iterator::value_type
,
57 IteratorToBaseConverter
, IteratorFromBaseConverter
,
58 ReverseIteratorFromBaseConverter
,
59 ValueToBaseConverter
, ValueFromBaseConverter
,
61 FunctorsFromDerivedClasses
65 typedef ::boost::bimaps::container_adaptor::
66 ordered_associative_container_adaptor
69 Iterator
, ConstIterator
, ReverseIterator
, ConstReverseIterator
,
70 BOOST_DEDUCED_TYPENAME
Iterator::value_type
,
71 IteratorToBaseConverter
, IteratorFromBaseConverter
,
72 ReverseIteratorFromBaseConverter
,
73 ValueToBaseConverter
, ValueFromBaseConverter
,
75 FunctorsFromDerivedClasses
79 // Access -----------------------------------------------------------------
83 explicit set_adaptor(Base
& c
) :
88 typedef set_adaptor set_adaptor_
;
93 } // namespace container_adaptor
98 #endif // BOOST_BIMAP_CONTAINER_ADAPTOR_SET_ADAPTOR_HPP