]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/container/pmr/devector.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / container / pmr / devector.hpp
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_VECTOR_HPP
12 #define BOOST_CONTAINER_PMR_VECTOR_HPP
13
14 #if defined (_MSC_VER)
15 # pragma once
16 #endif
17
18 #include <boost/container/devector.hpp>
19 #include <boost/container/pmr/polymorphic_allocator.hpp>
20
21 namespace boost {
22 namespace container {
23 namespace pmr {
24
25 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
26
27 template <
28 typename T,
29 typename GrowthPolicy = growth_factor_60
30 >
31 using devector = boost::container::devector<T, GrowthPolicy, polymorphic_allocator<T> >;
32
33 #endif
34
35 //! A portable metafunction to obtain a vector
36 //! that uses a polymorphic allocator
37 template <
38 typename T,
39 typename GrowthPolicy = growth_factor_60
40 >
41 struct devector_of
42 {
43 typedef boost::container::devector
44 < T, GrowthPolicy, polymorphic_allocator<T> > type;
45 };
46
47 } //namespace pmr {
48 } //namespace container {
49 } //namespace boost {
50
51 #endif //BOOST_CONTAINER_PMR_VECTOR_HPP