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

Method storage_ptr

include/boost/json/storage_ptr.hpp:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 template<class T>
117 storage_ptr(
118 detail::shared_resource_impl<T>* p) noexcept
119 : i_(reinterpret_cast<std::uintptr_t>(
120 static_cast<container::pmr::memory_resource*>(p)) + 1 +
121 (json::is_deallocate_trivial<T>::value ? 2 : 0))
122 {
123 BOOST_ASSERT(p);
124 }
125
126public:
127 /** Destructor.

Callers

nothing calls this directly

Calls 1

exchangeFunction · 0.85

Tested by

no test coverage detected