![]() |
Home | Libraries | People | FAQ | More |
Construct an object
.
value( object other);
The value is constructed from other
,
using the same memory resource. To transfer ownership, use std::move
:
object obj( {{"a",1}, {"b",2}, {"c"},3}} ); // transfer ownership value jv( std::move(obj) ); assert( obj.empty() ); assert( *obj.storage() == *jv.storage() );
Constant.
No-throw guarantee.
Name |
Description |
---|---|
|
The object to construct with. |