mirror of
https://github.com/boostorg/json.git
synced 2026-02-11 11:52:17 +00:00
38 lines
803 B
C++
38 lines
803 B
C++
//
|
|
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
// Official repository: https://github.com/vinniefalco/json
|
|
//
|
|
|
|
#ifndef BOOST_JSON_MEMORY_RESOURCE_HPP
|
|
#define BOOST_JSON_MEMORY_RESOURCE_HPP
|
|
|
|
#include <boost/json/config.hpp>
|
|
#ifndef BOOST_JSON_STANDALONE
|
|
# include <boost/container/pmr/memory_resource.hpp>
|
|
#else
|
|
# include <memory_resource>
|
|
#endif
|
|
|
|
namespace boost {
|
|
namespace json {
|
|
|
|
#ifndef BOOST_JSON_STANDALONE
|
|
|
|
/// The type of memory_resource used by the library.
|
|
using memory_resource = boost::container::pmr::memory_resource;
|
|
|
|
#else
|
|
|
|
using memory_resource = std::pmr::memory_resource;
|
|
|
|
#endif
|
|
|
|
} // json
|
|
} // boost
|
|
|
|
#endif
|