123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef BOOST_JSON_MEMORY_RESOURCE_HPP
- #define BOOST_JSON_MEMORY_RESOURCE_HPP
- #include <boost/json/detail/config.hpp>
- #include <boost/container/pmr/memory_resource.hpp>
- #include <boost/container/pmr/polymorphic_allocator.hpp>
- #include <boost/json/is_deallocate_trivial.hpp>
- namespace boost {
- namespace json {
- typedef boost::container::pmr::memory_resource
- BOOST_JSON_DEPRECATED("Use boost::container::pmr::memory_resource instead")
- memory_resource;
- template<class T>
- using
- polymorphic_allocator
- #ifndef BOOST_MSVC
- BOOST_JSON_DEPRECATED("Use boost::container::pmr::polymorphic_allocator instead")
- #endif
- = boost::container::pmr::polymorphic_allocator<T>;
- }
- }
- #endif
|