123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- #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>
- namespace boost {
- namespace json {
- #ifdef BOOST_JSON_DOCS
- class memory_resource
- {
- };
- template<class T>
- class polymorphic_allocator;
- #else
- using memory_resource = boost::container::pmr::memory_resource;
- template<class T>
- using polymorphic_allocator =
- boost::container::pmr::polymorphic_allocator<T>;
- #endif
- template<class T>
- struct is_deallocate_trivial
- {
-
- static constexpr bool value = false;
- };
- }
- }
- #endif
|