Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:34:56

0001 //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2015-2015. Distributed under the Boost
0004 // Software License, Version 1.0. (See accompanying file
0005 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // See http://www.boost.org/libs/container for documentation.
0008 //
0009 //////////////////////////////////////////////////////////////////////////////
0010 
0011 #ifndef BOOST_CONTAINER_PMR_SET_HPP
0012 #define BOOST_CONTAINER_PMR_SET_HPP
0013 
0014 #if defined (_MSC_VER)
0015 #  pragma once 
0016 #endif
0017 
0018 #include <boost/container/set.hpp>
0019 #include <boost/container/pmr/polymorphic_allocator.hpp>
0020 
0021 namespace boost {
0022 namespace container {
0023 namespace pmr {
0024 
0025 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
0026 
0027 template <class Key
0028          ,class Compare = std::less<Key>
0029          ,class Options = void >
0030 using set = boost::container::set<Key, Compare, polymorphic_allocator<Key>, Options>;
0031 
0032 template <class Key
0033          ,class Compare = std::less<Key>
0034          ,class Options = void >
0035 using multiset = boost::container::multiset<Key, Compare, polymorphic_allocator<Key>, Options>;
0036 
0037 #endif
0038 
0039 //! A portable metafunction to obtain a set
0040 //! that uses a polymorphic allocator
0041 template <class Key
0042          ,class Compare = std::less<Key>
0043          ,class Options = void >
0044 struct set_of
0045 {
0046    typedef boost::container::set<Key, Compare, polymorphic_allocator<Key>, Options> type;
0047 };
0048 
0049 //! A portable metafunction to obtain a multiset
0050 //! that uses a polymorphic allocator
0051 template <class Key
0052          ,class Compare = std::less<Key>
0053          ,class Options = void >
0054 struct multiset_of
0055 {
0056    typedef boost::container::multiset<Key, Compare, polymorphic_allocator<Key>, Options> type;
0057 };
0058 
0059 }  //namespace pmr {
0060 }  //namespace container {
0061 }  //namespace boost {
0062 
0063 #endif   //BOOST_CONTAINER_PMR_SET_HPP