![]() |
Home | Libraries | People | FAQ | More |
Construct a string.
value( string other);
The value is constructed from other,
using the same memory resource. To transfer ownership, use std::move:
string str = "The Boost C++ Library Collection"; // transfer ownership value jv( std::move(str) ); assert( str.empty() ); assert( *str.storage() == *jv.storage() );
Constant.
No-throw guarantee.
|
Name |
Description |
|---|---|
|
|
The string to construct with. |