// Copyright 2024 Joaquin M Lopez Munz. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or move at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_UNORDERED_TEST_REPLACE_ALLOCATOR #define BOOST_UNORDERED_TEST_REPLACE_ALLOCATOR #include #include namespace test { template struct replace_allocator_impl; template using replace_allocator = typename replace_allocator_impl::type; template < typename K, typename H, typename P, typename A, template class Set, typename Allocator > struct replace_allocator_impl, Allocator> { using type = Set< K, H, P, boost::allocator_rebind_t >; }; template < typename K, typename H, typename T, typename P, typename A, template class Map, typename Allocator > struct replace_allocator_impl, Allocator> { using type = Map< K, T, H, P, boost::allocator_rebind_t > >; }; } // namespace test #endif // !defined(BOOST_UNORDERED_TEST_REPLACE_ALLOCATOR)