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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
key_value_pair::key_value_pair (3 of 7 overloads)

Move constructor.

Synopsis
key_value_pair(
    key_value_pair&& other);
Description

The pair is constructed by acquiring ownership of the contents of other and shared ownership of other's memory resource.

Remarks

After construction, the moved-from pair holds an empty key, and a null value with its current storage pointer.

Complexity

Constant.

Exception Safety

No-throw guarantee.

Parameters

Name

Description

other

The pair to move.


PrevUpHomeNext