]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/allocator_size_type_test.cpp
2 Copyright 2020 Glen Joseph Fernandes
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
8 #include <boost/core/allocator_access.hpp>
9 #include <boost/core/is_same.hpp>
10 #include <boost/core/lightweight_test_trait.hpp>
15 typedef int size_type
;
18 #if !defined(BOOST_NO_CXX11_ALLOCATOR)
27 BOOST_TEST_TRAIT_TRUE((boost::core::is_same
<int,
28 boost::allocator_size_type
<A1
<char> >::type
>));
29 #if !defined(BOOST_NO_CXX11_ALLOCATOR)
30 BOOST_TEST_TRAIT_TRUE((boost::core::is_same
<std::size_t,
31 boost::allocator_size_type
<A2
<int> >::type
>));
33 return boost::report_errors();