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

Method get_allocator

include/boost/json/object.hpp:450–454  ·  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

448 No-throw guarantee.
449 */
450 allocator_type
451 get_allocator() const noexcept
452 {
453 return sp_.get();
454 }
455
456 //------------------------------------------------------
457 //

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected