| Home | Libraries | People | FAQ | More

###### value::value (24 of 35 overloads)

Construct a `string`.

<h7> Synopsis </h7>

    value(
        string const& other,
        storage_ptr sp);

<h7> Description </h7>

The value is copy constructed from `other`, using the specified memory resource.

<h7> Complexity </h7>

Linear in `other.size()`.

<h7> Exception Safety </h7>

Strong guarantee. Calls to `memory_resource::allocate` may throw.

<h7> Parameters </h7>

Name | Description
--- | ---
`other` | The string to construct with.
`sp` | A pointer to the `memory_resource` to use. The container will acquire shared ownership of the memory resource.