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 (2 of 7 overloads)

Copy constructor.

Synopsis
key_value_pair(
    key_value_pair const& other,
    storage_ptr sp);
Description

This constructs a key/value pair with a copy of another key/value pair, using the specified memory resource.

Exception Safety

Strong guarantee. Calls to memory_resource::allocate may throw.

Parameters

Name

Description

other

The key/value pair to copy.

sp

A pointer to the memory_resource to use. The element will acquire shared ownership of the memory resource.


PrevUpHomeNext