]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/core/test/allocator_pocca_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / core / test / allocator_pocca_test.cpp
CommitLineData
20effc67
TL
1/*
2Copyright 2020 Glen Joseph Fernandes
3(glenjofe@gmail.com)
4
5Distributed under the Boost Software License, Version 1.0.
6(http://www.boost.org/LICENSE_1_0.txt)
7*/
8#include <boost/core/allocator_access.hpp>
9#include <boost/core/is_same.hpp>
10#include <boost/core/lightweight_test_trait.hpp>
11
12template<class T>
13struct A1 {
14 typedef T value_type;
15};
16
20effc67
TL
17template<class T>
18struct A2 {
19 typedef T value_type;
1e59de90
TL
20 struct propagate_on_container_copy_assignment {
21 static const bool value = true;
22 };
20effc67 23};
20effc67
TL
24
25int main()
26{
27 BOOST_TEST_TRAIT_FALSE((boost::
28 allocator_propagate_on_container_copy_assignment<A1<int> >::type));
20effc67
TL
29 BOOST_TEST_TRAIT_TRUE((boost::
30 allocator_propagate_on_container_copy_assignment<A2<int> >::type));
20effc67
TL
31 return boost::report_errors();
32}