Constructors
Synopses
Declared in <bslstl_stringbuf.h>
Create a StringBufContainer object having the same value as the specified original object by moving the contents of original to the newly‐created object. original is left in a valid but unspecified state.
StringBufContainer(StringBufContainer&& original);
Create a StringBufContainer object using the specified allocator to supply memory.
explicit
StringBufContainer(ALLOCATOR const& allocator);
Create a StringBufContainer object using the specified modeBitMask and allocator.
StringBufContainer(
std::ios_base::openmode modeBitMask,
ALLOCATOR const& allocator);
Same as the constructor taking MovableRef<StringType>, ios_base::openmode, and ALLOCATOR.
StringBufContainer(
BloombergLP::bslmf::MovableRef<StringType> initialString,
std::ios_base::openmode modeBitMask);
Create a StringBufContainer object initialized with the specified initialString and allocator.
StringBufContainer(
StringType const& initialString,
ALLOCATOR const& allocator);
Create a StringBufContainer object using the specified allocator to supply memory and having the same value as the specified original object by moving the contents of original to the newly‐created object. original is left in a valid but unspecified state.
StringBufContainer(
StringBufContainer&& original,
ALLOCATOR const& allocator);
Create a StringBufContainer object. Use the specified initialString (of a type convertible to basic_string_view<CHAR_TYPE, CHAR_TRAITS> but not to const CHAR_TYPE *) indicating the initial sequence of characters that this buffer will access or manipulate. Use the specified modeBitMask to indicate whether this buffer may be read from, written to, or both. Use the specified allocator to supply memory.
template<class STRING_VIEW_LIKE_TYPE>
StringBufContainer(
STRING_VIEW_LIKE_TYPE const& initialString,
std::ios_base::openmode modeBitMask);
Create a StringBufContainer object initialized from the specified initialString and modeBitMask, using the allocator in initialString to supply memory.
StringBufContainer(
BloombergLP::bslmf::MovableRef<StringType> initialString,
std::ios_base::openmode modeBitMask,
ALLOCATOR const& allocator);
Create a StringBufContainer object initialized with the specified initialString, modeBitMask, and allocator.
StringBufContainer(
StringType const& initialString,
std::ios_base::openmode modeBitMask,
ALLOCATOR const& allocator);
Create a StringBufContainer object whose buffer contains the characters in the specified [first, last)] range.
template<class STRING_ITER>
StringBufContainer(
STRING_ITER first,
STRING_ITER last,
std::ios_base::openmode modeBitMask,
ALLOCATOR const& allocator);
Created with MrDocs