Create a basic_string object.
Synopsis
Declared in <bslstl_string.h>
basic_string(
BloombergLP::bslmf::MovableRef<basic_string> original,
ALLOCATOR const& basicAllocator);
Description
Create a string that has the same value as the specified original string that uses the specified basicAllocator to supply memory. The contents of original are moved (in constant time) to the new string if basicAllocator == original.get_allocator(), and are copied (in linear time) using basicAllocator otherwise. original is left in a valid but unspecified state.
Parameters
Name |
Description |
original |
source string |
basicAllocator |
allocator used to supply memory |
Created with MrDocs