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

Function make_shared_resource

include/boost/json/storage_ptr.hpp:423–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421*/
422template<class U, class... Args>
423storage_ptr
424make_shared_resource(Args&&... args)
425{
426 // If this generates an error, it means that
427 // `T` is not a memory resource.
428 BOOST_CORE_STATIC_ASSERT((
429 std::is_base_of<container::pmr::memory_resource, U>::value));
430 return storage_ptr(new
431 detail::shared_resource_impl<U>(
432 std::forward<Args>(args)...));
433}
434#if defined(_MSC_VER)
435# pragma warning( pop )
436#endif

Callers

nothing calls this directly

Calls 1

storage_ptrClass · 0.70

Tested by

no test coverage detected