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

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;

== Synopsis

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

[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;&
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]#Created with https://www.mrdocs.com[MrDocs]#
