Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
string::string (3 of 12 overloads)

Constructor.

Synopsis
string(
    storage_ptr sp);
Description

The string will have zero size and a non-zero, unspecified capacity, obtained from the specified memory resource.

Complexity

Constant.

Parameters

Name

Description

sp

A pointer to the memory_resource to use. The container will acquire shared ownership of the memory resource.


PrevUpHomeNext