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

Method get_allocator

include/boost/json/string.hpp:556–560  ·  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

554 No-throw guarantee.
555 */
556 allocator_type
557 get_allocator() const noexcept
558 {
559 return sp_.get();
560 }
561
562 //------------------------------------------------------
563 //

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected