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_set_view.hpp
10 /// \brief View of a bimap that is signature compatible with tr1::unordered_set.
12 #ifndef BOOST_BIMAP_VIEWS_UNORDERED_SET_VIEW_HPP
13 #define BOOST_BIMAP_VIEWS_UNORDERED_SET_VIEW_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
21 #include <boost/bimap/container_adaptor/unordered_set_adaptor.hpp>
22 #include <boost/bimap/detail/set_view_base.hpp>
28 /// \brief View of a bimap that is signature compatible with std::unordered_set.
31 This class uses container_adaptor and iterator_adaptor to wrapped a index of the
32 multi_index bimap core so it can be used as a std::unordered_set.
34 See also const_unordered_set_view.
37 template< class CoreIndex >
38 class unordered_set_view
40 public BOOST_BIMAP_SET_VIEW_CONTAINER_ADAPTOR(
41 unordered_set_adaptor,
47 public ::boost::bimaps::detail::
48 set_view_base< unordered_set_view< CoreIndex >, CoreIndex >
50 BOOST_BIMAP_SET_VIEW_BASE_FRIEND(unordered_set_view,CoreIndex)
52 typedef BOOST_BIMAP_SET_VIEW_CONTAINER_ADAPTOR(
53 unordered_set_adaptor,
62 unordered_set_view(BOOST_DEDUCED_TYPENAME base_::base_type & c)
65 unordered_set_view & operator=(const unordered_set_view & v)
67 this->base() = v.base();
77 #endif // BOOST_BIMAP_VIEWS_UNORDERED_SET_VIEW_HPP