MCPcopy Create free account
hub / github.com/boostorg/json / get_allocator

Method get_allocator

include/boost/json/value.hpp:1828–1832  ·  view source on GitHub ↗

Return the associated allocator. This function returns an instance of @ref allocator_type constructed from the associated @ref boost::container::pmr::memory_resource. @par Complexity Constant. @par Exception Safety No-throw guarantee. */

Source from the content-addressed store, hash-verified

1826 No-throw guarantee.
1827 */
1828 allocator_type
1829 get_allocator() const noexcept
1830 {
1831 return sp_.get();
1832 }
1833
1834 //------------------------------------------------------
1835

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected