...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( polymorphic_allocator< T > const& alloc);
This constructs a non-owning pointer that points to the same memory resource
as alloc
, obtained by
calling alloc.resource()
.
The caller is responsible for maintaining the lifetime of the pointed-to
memory_resource
.
std::is_convertible< T*, memory_resource* >::value == true
No-throw guarantee.
Name |
Description |
---|---|
|
A |