Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:37

0001 // Boost.Bimap
0002 //
0003 // Copyright (c) 2006-2007 Matias Capeletto
0004 //
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // (See accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 /// \file container_adaptor/multiset_adaptor.hpp
0010 /// \brief Container adaptor to easily build a std::multiset signature compatible container.
0011 
0012 #ifndef BOOST_BIMAP_CONTAINER_ADAPTOR_MULTISET_ADAPTOR_HPP
0013 #define BOOST_BIMAP_CONTAINER_ADAPTOR_MULTISET_ADAPTOR_HPP
0014 
0015 #if defined(_MSC_VER)
0016 #pragma once
0017 #endif
0018 
0019 #include <boost/config.hpp>
0020 
0021 #include <boost/bimap/container_adaptor/ordered_associative_container_adaptor.hpp>
0022 #include <boost/bimap/container_adaptor/detail/non_unique_container_helper.hpp>
0023 #include <boost/mpl/aux_/na.hpp>
0024 #include <boost/mpl/vector.hpp>
0025 
0026 namespace boost {
0027 namespace bimaps {
0028 namespace container_adaptor {
0029 
0030 /// \brief Container adaptor to easily build a std::multiset signature compatible container.
0031 
0032 template
0033 <
0034     class Base,
0035 
0036     class Iterator,
0037     class ConstIterator,
0038     class ReverseIterator,
0039     class ConstReverseIterator,
0040 
0041     class IteratorToBaseConverter          = ::boost::mpl::na,
0042     class IteratorFromBaseConverter        = ::boost::mpl::na,
0043     class ReverseIteratorFromBaseConverter = ::boost::mpl::na,
0044     class ValueToBaseConverter             = ::boost::mpl::na,
0045     class ValueFromBaseConverter           = ::boost::mpl::na,
0046     class KeyToBaseConverter               = ::boost::mpl::na,
0047 
0048     class FunctorsFromDerivedClasses = mpl::vector<>
0049 >
0050 class multiset_adaptor :
0051 
0052     public ::boost::bimaps::container_adaptor::
0053                 ordered_associative_container_adaptor
0054     <
0055         Base,
0056         Iterator, ConstIterator, ReverseIterator, ConstReverseIterator,
0057         BOOST_DEDUCED_TYPENAME Iterator::value_type,
0058         IteratorToBaseConverter, IteratorFromBaseConverter,
0059         ReverseIteratorFromBaseConverter,
0060         ValueToBaseConverter, ValueFromBaseConverter,
0061         KeyToBaseConverter,
0062         FunctorsFromDerivedClasses
0063     >
0064 {
0065 
0066     typedef ::boost::bimaps::container_adaptor::
0067                 ordered_associative_container_adaptor
0068     <
0069         Base,
0070         Iterator, ConstIterator, ReverseIterator, ConstReverseIterator,
0071         BOOST_DEDUCED_TYPENAME Iterator::value_type,
0072         IteratorToBaseConverter, IteratorFromBaseConverter,
0073         ReverseIteratorFromBaseConverter,
0074         ValueToBaseConverter, ValueFromBaseConverter,
0075         KeyToBaseConverter,
0076         FunctorsFromDerivedClasses
0077 
0078     > base_;
0079 
0080     // Access -----------------------------------------------------------------
0081 
0082     public:
0083 
0084     explicit multiset_adaptor(Base & c) :
0085         base_(c) {}
0086 
0087     protected:
0088 
0089     typedef multiset_adaptor multiset_adaptor_;
0090 
0091     public:
0092 
0093     BOOST_BIMAP_NON_UNIQUE_CONTAINER_ADAPTOR_INSERT_FUNCTIONS
0094 };
0095 
0096 
0097 } // namespace container_adaptor
0098 } // namespace bimaps
0099 } // namespace boost
0100 
0101 
0102 #endif // BOOST_BIMAP_CONTAINER_ADAPTOR_MULTISET_ADAPTOR_HPP
0103