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_SMALL_VECTOR_HPP
12 #define BOOST_CONTAINER_PMR_SMALL_VECTOR_HPP
14 #if defined (_MSC_VER)
18 #include <boost/container/small_vector.hpp>
19 #include <boost/container/pmr/polymorphic_allocator.hpp>
25 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
27 template <class T, std::size_t N>
28 using small_vector = boost::container::small_vector<T, N, polymorphic_allocator<T>>;
32 //! A portable metafunction to obtain a small_vector
33 //! that uses a polymorphic allocator
34 template<class T, std::size_t N>
35 struct small_vector_of
37 typedef boost::container::small_vector
38 < T, N, polymorphic_allocator<T> > type;
42 } //namespace container {
45 #endif //BOOST_CONTAINER_PMR_SMALL_VECTOR_HPP