| Home | Libraries | People | FAQ | More

###### value::value (34 of 35 overloads)

Construct an `object`.

<h7> Synopsis </h7>

    value(
        object_kind_t,
        storage_ptr sp = {});

<h7> Description </h7>

This is the fastest way to construct an empty object, using the specified memory resource. The variable `object_kind` may be passed as the first parameter to select this overload:

<h7> Example </h7>

    // Construct an empty object

    value jv( object_kind );

<h7> Complexity </h7>

Constant.

<h7> Exception Safety </h7>

No-throw guarantee.

<h7> Parameters </h7>

Name | Description
--- | ---
`sp` | A pointer to the `memory_resource` to use. The container will acquire shared ownership of the memory resource.

<h7> See Also </h7>

`object_kind`