| Home | Libraries | People | FAQ | More

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

Pilfer constructor.

<h7> Synopsis </h7>

    value(
        pilfered< value > other);

<h7> Description </h7>

The value is constructed by acquiring ownership of the contents of `other` using pilfer semantics. This is more efficient than move construction, when it is known that the moved-from object will be immediately destroyed afterwards.

<h7> Complexity </h7>

Constant.

<h7> Exception Safety </h7>

No-throw guarantee.

<h7> Parameters </h7>

Name | Description
--- | ---
`other` | The value to pilfer. After pilfer construction, `other` is not in a usable state and may only be destroyed.

<h7> See Also </h7>

`pilfer`, Valueless Variants Considered Harmful