[#bsl-StringBufContainer-2constructor-0f] = xref:bsl.adoc[bsl]::xref:bsl/StringBufContainer.adoc[StringBufContainer]::StringBufContainer :relfileprefix: ../../ :mrdocs: 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/StringBufContainer/2constructor-08.adoc[StringBufContainer](xref:bsl/StringBufContainer.adoc[StringBufContainer]&& original); ---- [.small]#xref:bsl/StringBufContainer/2constructor-08.adoc[_» more..._]# Create a `StringBufContainer` object using the specified `allocator` to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/StringBufContainer/2constructor-05.adoc[StringBufContainer](ALLOCATOR const& allocator); ---- [.small]#xref:bsl/StringBufContainer/2constructor-05.adoc[_» more..._]# Create a `StringBufContainer` object using the specified `modeBitMask` and `allocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/StringBufContainer/2constructor-0a87.adoc[StringBufContainer]( std::ios_base::openmode modeBitMask, ALLOCATOR const& allocator); ---- [.small]#xref:bsl/StringBufContainer/2constructor-0a87.adoc[_» more..._]# Same as the constructor taking `MovableRef<StringType>`, `ios_base::openmode`, and `ALLOCATOR`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/StringBufContainer/2constructor-096.adoc[StringBufContainer]( xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<StringType>] initialString, std::ios_base::openmode modeBitMask); ---- [.small]#xref:bsl/StringBufContainer/2constructor-096.adoc[_» more..._]# Create a `StringBufContainer` object initialized with the specified `initialString` and `allocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/StringBufContainer/2constructor-0e.adoc[StringBufContainer]( xref:bsl/StringBufContainer.adoc[StringType] const& initialString, ALLOCATOR const& allocator); ---- [.small]#xref:bsl/StringBufContainer/2constructor-0e.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/StringBufContainer/2constructor-0cc.adoc[StringBufContainer]( xref:bsl/StringBufContainer.adoc[StringBufContainer]&& original, ALLOCATOR const& allocator); ---- [.small]#xref:bsl/StringBufContainer/2constructor-0cc.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_VIEW_LIKE_TYPE> xref:bsl/StringBufContainer/2constructor-0a8a.adoc[StringBufContainer]( STRING_VIEW_LIKE_TYPE const& initialString, std::ios_base::openmode modeBitMask); ---- [.small]#xref:bsl/StringBufContainer/2constructor-0a8a.adoc[_» more..._]# Create a `StringBufContainer` object initialized from the specified `initialString` and `modeBitMask`, using the allocator in `initialString` to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/StringBufContainer/2constructor-098.adoc[StringBufContainer]( xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<StringType>] initialString, std::ios_base::openmode modeBitMask, ALLOCATOR const& allocator); ---- [.small]#xref:bsl/StringBufContainer/2constructor-098.adoc[_» more..._]# Create a `StringBufContainer` object initialized with the specified `initialString`, `modeBitMask`, and `allocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/StringBufContainer/2constructor-0c8.adoc[StringBufContainer]( xref:bsl/StringBufContainer.adoc[StringType] const& initialString, std::ios_base::openmode modeBitMask, ALLOCATOR const& allocator); ---- [.small]#xref:bsl/StringBufContainer/2constructor-0c8.adoc[_» more..._]# Create a `StringBufContainer` object whose buffer contains the characters in the specified `[first, last)]` range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_ITER> xref:bsl/StringBufContainer/2constructor-02.adoc[StringBufContainer]( STRING_ITER first, STRING_ITER last, std::ios_base::openmode modeBitMask, ALLOCATOR const& allocator); ---- [.small]#xref:bsl/StringBufContainer/2constructor-02.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#