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
value::value (26 of 35 overloads)

Construct a string.

Synopsis
value(
    string_kind_t,
    storage_ptr sp = {});
Description

This is the fastest way to construct an empty string, using the specified memory resource. The variable string_kind may be passed as the first parameter to select this overload:

Example
// Construct an empty string

value jv( string_kind );
Complexity

Constant.

Exception Safety

No-throw guarantee.

Parameters

Name

Description

sp

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

See Also

string_kind


PrevUpHomeNext