2 // Copyright (c) 2020 Vinnie Falco (vinnie.falco@gmail.com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/json
10 #ifndef BOOST_JSON_NULL_RESOURCE_HPP
11 #define BOOST_JSON_NULL_RESOURCE_HPP
13 #include <boost/json/detail/config.hpp>
14 #include <boost/json/memory_resource.hpp>
18 /** Return a pointer to the null resource.
20 This memory resource always throws the exception
21 `std::bad_alloc` in calls to `allocate`.
31 get_null_resource() noexcept;