| Home | Libraries | People | FAQ | More

###### storage_ptr::storage_ptr (2 of 5 overloads)

Constructor.

<h7> Synopsis </h7>

    template<
        class T>
    storage_ptr(
        T* r);

<h7> Description </h7>

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 `memory_resource`.

<h7> Constraints </h7>

    std::is_convertible< T*, memory_resource* >::value == true

<h7> Preconditions </h7>

    r != nullptr

<h7> Exception Safety </h7>

No-throw guarantee.

<h7> Parameters </h7>

Name | Description
--- | ---
`r` | A pointer to the memory resource to use. This may not be null.