Create a StringBufContainer from a string‐view‐like initial value.
Synopsis
Declared in <bslstl_stringbuf.h>
template<class STRING_VIEW_LIKE_TYPE>
StringBufContainer(
STRING_VIEW_LIKE_TYPE const& initialString,
std::ios_base::openmode modeBitMask);
Description
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.
Parameters
Name |
Description |
initialString |
initial character sequence for the buffer |
modeBitMask |
open mode for the contained stream buffer |
Created with MrDocs