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 | #include <boost/container/pmr/small_vector.hpp> |
12 | #include <boost/container/detail/type_traits.hpp> |
13 | |
14 | int main() |
15 | { |
16 | using namespace boost::container; |
17 | using boost::container::dtl::is_same; |
18 | |
19 | typedef small_vector<int, 2, pmr::polymorphic_allocator<int> > intcontainer_t; |
20 | BOOST_CONTAINER_STATIC_ASSERT(( is_same<intcontainer_t, pmr::small_vector_of<int, 2>::type >::value )); |
21 | #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) |
22 | BOOST_CONTAINER_STATIC_ASSERT(( is_same<intcontainer_t, pmr::small_vector<int, 2> >::value )); |
23 | #endif |
24 | return 0; |
25 | } |
26 |