Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
string::string (12 of 12 overloads)

Move constructor.

Synopsis
string(
    string&& other) noexcept;
Description

Constructs the string with the contents of other using move semantics. Ownership of the underlying memory is transferred. The container acquires shared ownership of the boost::container::pmr::memory_resource used by other. After construction, the moved-from string behaves as if newly constructed with its current memory resource.

Complexity

Constant.

Parameters

Name

Description

other

The string to move


PrevUpHomeNext