]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/allocator_deallocate_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/lightweight_test.hpp>
15 typedef std::size_t size_type
;
18 void deallocate(T
*, std::size_t n
) {
27 boost::allocator_deallocate(a
, 0, 5);
28 BOOST_TEST_EQ(a
.value
, 5);
29 return boost::report_errors();