BloombergLP::bslx::GenericOutStream::putString

Write the length and characters of the specified value to this stream.

Synopsis

Declared in <bslx_genericoutstream.h>

GenericOutStream<STREAMBUF>&
putString(bsl::string const& value);

Description

Write to the stream supplied at construction the length of the specified value (see putLength) and an array of one-byte, two's complement unsigned integers comprised of the least-significant one byte of each character in the value, and return a reference to this stream. If this stream is initially invalid, this operation has no effect.

Return Value

a reference to this stream

Parameters

NameDescription
valuestring to write