1//
2// Testing stdlib polymorphic allocators
3//
4// Copyright 2024 Braden Ganetsky
5//
6// Distributed under the Boost Software License, Version 1.0.
7// See accompanying file LICENSE_1_0.txt or copy at
8// http://www.boost.org/LICENSE_1_0.txt
9//
10
11#include <boost/core/allocator_access.hpp>
12#include <boost/config.hpp>
13
14#ifndef BOOST_NO_CXX17_HDR_MEMORY_RESOURCE
15#include <memory_resource>
16
17void pmr_allocator_destroy_compiles(std::pmr::polymorphic_allocator<int>& alloc, int* p)
18{
19 boost::allocator_destroy(a&: alloc, p);
20}
21
22#endif // !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE)
23

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