...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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. |