bsl::basic_string::basic_string

Create a basic_string object.

Synopsis

Declared in <bslstl_string.h>

basic_string(BloombergLP::bslmf::MovableRef<basic_string> original) noexcept;

Description

Create a string that has the same value as the specified original string by moving (in constant time) the contents of original to the new string. The allocator associated with original is propagated for use in the newly-created string. original is left in a valid but unspecified state.

Parameters

NameDescription
originalsource string