[#bsl-operator_lshift-05b]
= xref:bsl.adoc[bsl]::operator&lt;&lt;
:relfileprefix: ../
:mrdocs:

Stream insertion operators

== Synopses

Declared in `&lt;bslstl&lowbar;bitset&period;h&gt;`

Write the string specified by `str` into the output stream specified by `os`, and return `os`&period; If the string is shorter than `os&period;width()`, then it is padded to `os&period;width()` with the current `os&period;fill()` character&period; The padding, if any, is output after the string (on the right) if `os&period;flags() &verbar; ios&colon;&colon;left` is non&hyphen;zero and before the string otherwise&period; This function will do nothing unless `os&period;good()` is true on entry&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class CHAR&lowbar;TRAITS,
    class ALLOCATOR&gt;
std::basic&lowbar;ostream&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;&
xref:bsl/operator_lshift-05f.adoc[operator&lt;&lt;](
    std::basic&lowbar;ostream&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;& os,
    xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOCATOR&gt;] const& str);
----

[.small]#xref:bsl/operator_lshift-05f.adoc[_» more&period;&period;&period;_]#

Print to the specified `stream` the address of the shared object referred to by the specified `rhs` shared pointer and return a reference to the modifiable `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class CHAR&lowbar;TRAITS,
    class ELEMENT&lowbar;TYPE&gt;
std::basic&lowbar;ostream&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;&
xref:bsl/operator_lshift-02.adoc[operator&lt;&lt;](
    std::basic&lowbar;ostream&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;& stream,
    xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr&lt;ELEMENT&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:bsl/operator_lshift-02.adoc[_» more&period;&period;&period;_]#

Insert a textual representation of the specified bitset `x` into `os`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class TRAITS,
    std::size&lowbar;t N&gt;
std::basic&lowbar;ostream&lt;CHAR&lowbar;TYPE, TRAITS&gt;&
xref:bsl/operator_lshift-01.adoc[operator&lt;&lt;](
    std::basic&lowbar;ostream&lt;CHAR&lowbar;TYPE, TRAITS&gt;& os,
    xref:bsl/bitset.adoc[bitset&lt;N&gt;] const& x);
----

[.small]#xref:bsl/operator_lshift-01.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
