1/*
2Copyright 2021 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/default_allocator.hpp>
9#include <boost/core/allocator_access.hpp>
10#include <boost/core/lightweight_test.hpp>
11
12int main()
13{
14 boost::default_allocator<int> a;
15 int* p = boost::allocator_allocate(a, n: 1, 0);
16 BOOST_TEST(p != 0);
17 a.deallocate(p, 1);
18 return boost::report_errors();
19}
20

source code of boost/libs/core/test/default_allocator_allocate_hint_test.cpp