...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
template< class T> storage_ptr( T* r) noexcept;
This constructs a non-owning pointer that points to the memory resource
r
. The caller is responsible
for maintaining the lifetime of the pointed-to boost::container::pmr::memory_resource
.
std::is_convertible< T*, boost::container::pmr::memory_resource* >::value == true
r != nullptr
No-throw guarantee.
Name |
Description |
---|---|
|
A pointer to the memory resource to use. This may not be null. |