bsl::basic_istringstream::basic_istringstream

Create a basic_istringstream 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 sequence of characters from which input will be streamed. Use the specified modeBitMask to indicate whether this buffer may be read from, written to, or both. rdbuf is created using modeBitMask | ios_base::in. Optionally specify the allocator used to supply memory. If allocator is not supplied, a default-constructed object of the (template parameter) ALLOCATOR type is used. If the ALLOCATOR argument is of type bsl::allocator (the default), then allocator, if supplied, shall be convertible to bslma::Allocator *. If the ALLOCATOR argument is of type bsl::allocator and allocator is not supplied, the currently installed default allocator will be used to supply memory.

Synopsis

Declared in <bslstl_istringstream.h>

template<class STRING_VIEW_LIKE_TYPE>
basic_istringstream(
    STRING_VIEW_LIKE_TYPE const& initialString,
    ios_base::openmode modeBitMask);