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 a snapshot of the master branch, built from commit a8a4da0b3c.
PrevUpHomeNext
value::value (27 of 35 overloads)

Construct an array.

Synopsis
value(
    array other);
Description

The value is constructed from other, using the same memory resource. To transfer ownership, use std::move:

Example
array arr( {1, 2, 3, 4, 5} );

// transfer ownership
value jv( std::move(arr) );

assert( arr.empty() );
assert( *arr.storage() == *jv.storage() );
Complexity

Constant.

Exception Safety

No-throw guarantee.

Parameters

Name

Description

other

The array to construct with.


PrevUpHomeNext