Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

memory_resource

The type of memory resource used by the library.

Synopsis

Defined in header <boost/json/memory_resource.hpp>

class memory_resource
Description

This type alias is set depending on how the library is configured:

Use with Boost

If the macro BOOST_JSON_STANDALONE is not defined, this type will be an alias for boost::container::pmr::memory_resource. Compiling a program using the library will require Boost, and a compiler conforming to C++11 or later.

Use without Boost

If the macro BOOST_JSON_STANDALONE is defined, this type will be an alias for std::pmr::memory_resource. Compiling a program using the library will require only a compiler conforming to C++17 or later.

See Also

https://en.cppreference.com/w/cpp/memory/memory_resource

Convenience header <boost/json.hpp>


PrevUpHomeNext