Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit b965813c89.
PrevUpHomeNext

get_null_resource

Return a pointer to the null resource.

Synopsis

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

memory_resource*
get_null_resource();
Description

This memory resource always throws the exception std::bad_alloc in calls to allocate.

Complexity

Constant.

Exception Safety

No-throw guarantee.

Convenience header <boost/json.hpp>


PrevUpHomeNext