1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2015-2015. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // See http://www.boost.org/libs/container for documentation.
9 //////////////////////////////////////////////////////////////////////////////
11 #ifndef BOOST_CONTAINER_PMR_SET_HPP
12 #define BOOST_CONTAINER_PMR_SET_HPP
14 #if defined (_MSC_VER)
18 #include <boost/container/set.hpp>
19 #include <boost/container/pmr/polymorphic_allocator.hpp>
25 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
28 ,class Compare = std::less<Key>
29 ,class Options = tree_assoc_defaults >
30 using set = boost::container::set<Key, Compare, polymorphic_allocator<Key>, Options>;
33 ,class Compare = std::less<Key>
34 ,class Options = tree_assoc_defaults >
35 using multiset = boost::container::multiset<Key, Compare, polymorphic_allocator<Key>, Options>;
39 //! A portable metafunction to obtain a set
40 //! that uses a polymorphic allocator
42 ,class Compare = std::less<Key>
43 ,class Options = tree_assoc_defaults >
46 typedef boost::container::set<Key, Compare, polymorphic_allocator<Key>, Options> type;
49 //! A portable metafunction to obtain a multiset
50 //! that uses a polymorphic allocator
52 ,class Compare = std::less<Key>
53 ,class Options = tree_assoc_defaults >
56 typedef boost::container::multiset<Key, Compare, polymorphic_allocator<Key>, Options> type;
60 } //namespace container {
63 #endif //BOOST_CONTAINER_PMR_SET_HPP