]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/container/include/boost/container/pmr/flat_set.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / container / include / boost / container / pmr / flat_set.hpp
CommitLineData
7c673cae
FG
1//////////////////////////////////////////////////////////////////////////////
2//
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)
6//
7// See http://www.boost.org/libs/container for documentation.
8//
9//////////////////////////////////////////////////////////////////////////////
10
11#ifndef BOOST_CONTAINER_PMR_SET_HPP
12#define BOOST_CONTAINER_PMR_SET_HPP
13
14#if defined (_MSC_VER)
15# pragma once
16#endif
17
18#include <boost/container/flat_set.hpp>
19#include <boost/container/pmr/polymorphic_allocator.hpp>
20
21namespace boost {
22namespace container {
23namespace pmr {
24
25#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
26
27template <class Key
28 ,class Compare = std::less<Key>
29 ,class Options = tree_assoc_defaults >
30using flat_set = boost::container::flat_set<Key, Compare, polymorphic_allocator<Key> >;
31
32template <class Key
33 ,class Compare = std::less<Key>
34 ,class Options = tree_assoc_defaults >
35using flat_multiset = boost::container::flat_multiset<Key, Compare, polymorphic_allocator<Key> >;
36
37#endif
38
39//! A portable metafunction to obtain a flat_set
40//! that uses a polymorphic allocator
41template <class Key
42 ,class Compare = std::less<Key>
43 ,class Options = tree_assoc_defaults >
44struct flat_set_of
45{
46 typedef boost::container::flat_set<Key, Compare, polymorphic_allocator<Key> > type;
47};
48
49//! A portable metafunction to obtain a flat_multiset
50//! that uses a polymorphic allocator
51template <class Key
52 ,class Compare = std::less<Key>
53 ,class Options = tree_assoc_defaults >
54struct flat_multiset_of
55{
56 typedef boost::container::flat_multiset<Key, Compare, polymorphic_allocator<Key> > type;
57};
58
59} //namespace pmr {
60} //namespace container {
61} //namespace boost {
62
63#endif //BOOST_CONTAINER_PMR_SET_HPP