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 views/unordered_multiset_view.hpp
10 /// \brief View of a bimap that is signature compatible with tr1::unordered_multiset.
12 #ifndef BOOST_BIMAP_VIEWS_UNORDERED_MULTISET_VIEW_HPP
13 #define BOOST_BIMAP_VIEWS_UNORDERED_MULTISET_VIEW_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
21 #include <boost/bimap/container_adaptor/unordered_multiset_adaptor.hpp>
22 #include <boost/bimap/detail/non_unique_views_helper.hpp>
23 #include <boost/bimap/detail/set_view_base.hpp>
29 /// \brief View of a bimap that is signature compatible with std::unordered_multiset.
32 This class uses container_adaptor and iterator_adaptor to wrapped a index of the
33 multi_index bimap core so it can be used as a std::unordered_multiset.
35 See also const_unordered_multiset_view.
38 template< class CoreIndex
>
39 class unordered_multiset_view
41 public BOOST_BIMAP_SET_VIEW_CONTAINER_ADAPTOR(
42 unordered_multiset_adaptor
,
49 public ::boost::bimaps::detail::
50 set_view_base
< unordered_multiset_view
< CoreIndex
>, CoreIndex
>
52 BOOST_BIMAP_SET_VIEW_BASE_FRIEND(unordered_multiset_view
,CoreIndex
)
54 typedef BOOST_BIMAP_SET_VIEW_CONTAINER_ADAPTOR(
55 unordered_multiset_adaptor
,
64 unordered_multiset_view(BOOST_DEDUCED_TYPENAME
base_::base_type
& c
)
67 BOOST_BIMAP_NON_UNIQUE_VIEW_INSERT_FUNCTIONS
69 unordered_multiset_view
& operator=(const unordered_multiset_view
& v
)
71 this->base() = v
.base();
81 #endif // BOOST_BIMAP_VIEWS_UNORDERED_MULTISET_VIEW_HPP