![]() |
Home | Libraries | People | FAQ | More |
Construct from an initializer-list.
value( std::initializer_list< value_ref > init, storage_ptr sp = {});
If the initializer list consists of key/value pairs, an object
is created. Otherwise
an array
is created. The contents of the initializer list are copied to the newly
constructed value using the specified memory resource.
Linear in init.size()
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
Name |
Description |
---|---|
|
The initializer list to construct from. |
|
A pointer to the |