Constructors
Synopses
Declared in <bslstl_istringstream.h>
Create a basic_istringstream 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.
basic_istringstream(basic_istringstream&& original);
Create a basic_istringstream object. Use the specified initialString indicating the initial sequence of characters from which input will be streamed. Optionally specify a modeBitMask indicating whether the underlying stream‐buffer may also be written to (rdbuf is created using modeBitMask | ios_base::in). If modeBitMask is not supplied, rdbuf will be created using ios_base::in. Optionally specify the allocator used to supply memory. If allocator is not supplied, the allocator in initialString is used. initialString is left in a valid but unspecified state.
explicit
basic_istringstream(BloombergLP::bslmf::MovableRef<StringType> initialString);
Create a basic_istringstream object. Optionally specify a modeBitMask indicating whether the underlying stream‐buffer may also be written to (rdbuf is created using modeBitMask | ios_base::in). If modeBitMask is not supplied, rdbuf will be created using ios_base::in. Optionally specify an initialString indicating the sequence of characters from which input will be streamed. If initialString is not supplied, there will not be data to stream (until a subsequent call to the str manipulator). 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. If initialString is passed by MovableRef, it is left in a valid but unspecified state.
explicit
basic_istringstream(allocator_type const& allocator = allocator_type());
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. rdbuf is created using 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.
template<class STRING_VIEW_LIKE_TYPE>
explicit
basic_istringstream(STRING_VIEW_LIKE_TYPE const& initialString);
Same as the constructor taking const allocator_type&.
explicit
basic_istringstream(
ios_base::openmode modeBitMask,
allocator_type const& allocator = allocator_type());
Same as the constructor taking MovableRef<StringType>.
basic_istringstream(
BloombergLP::bslmf::MovableRef<StringType> initialString,
ios_base::openmode modeBitMask);
Same as the constructor taking MovableRef<StringType>.
basic_istringstream(
BloombergLP::bslmf::MovableRef<StringType> initialString,
allocator_type const& allocator);
Same as the constructor taking const allocator_type&.
explicit
basic_istringstream(
StringType const& initialString,
allocator_type const& allocator = allocator_type());
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.
template<class STRING_VIEW_LIKE_TYPE>
basic_istringstream(
STRING_VIEW_LIKE_TYPE const& initialString,
ios_base::openmode modeBitMask);
Create a basic_istringstream object. Use the specified initialString indicating the sequence of characters from which input will be streamed. rdbuf is created using 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.
template<class SALLOC>
basic_istringstream(
bsl::basic_string<CHAR_TYPE, CHAR_TRAITS, SALLOC> const& initialString,
allocator_type const& allocator = allocator_type())
requires !bsl::is_same<ALLOCATOR, SALLOC>::value;
Same as the constructor taking MovableRef<StringType> and ios_base::openmode.
basic_istringstream(
BloombergLP::bslmf::MovableRef<StringType> initialString,
ios_base::openmode modeBitMask,
allocator_type const& allocator);
Same as the constructor taking const StringType& and const allocator_type&.
basic_istringstream(
StringType const& initialString,
ios_base::openmode modeBitMask,
allocator_type const& allocator = allocator_type());
Create a basic_istringstream object. Use the specified initialString 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. 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.
template<class SALLOC>
basic_istringstream(
bsl::basic_string<CHAR_TYPE, CHAR_TRAITS, SALLOC> const& initialString,
ios_base::openmode modeBitMask,
allocator_type const& allocator = allocator_type())
requires !bsl::is_same<ALLOCATOR, SALLOC>::value;
Created with MrDocs