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

Method get_allocator

include/boost/json/array.hpp:422–426  ·  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

420 No-throw guarantee.
421 */
422 allocator_type
423 get_allocator() const noexcept
424 {
425 return sp_.get();
426 }
427
428 //------------------------------------------------------
429 //

Callers 3

set1Function · 0.45
set1Function · 0.45
testPmrMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected