![]() |
Home | Libraries | People | FAQ | More |
Construct an array
.
value( array other);
The value is constructed from other
,
using the same memory resource. To transfer ownership, use std::move
:
[link json.ref.boost__json__kind `array`] arr( {1, 2, 3, 4, 5} ); // transfer ownership [link json.ref.boost__json__value.value `value`] jv( std::move(arr) ); assert( arr.empty() ); assert( *arr.storage() == *jv.storage() );
Constant.
No-throw guarantee.
Name |
Description |
---|---|
|
The array to construct with. |