Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
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