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.
Declared in <bslstl_sharedptr.h>
template<
class CHAR_TYPE,
class CHAR_TRAITS,
class ELEMENT_TYPE>
std::basic_ostream<CHAR_TYPE, CHAR_TRAITS>&
operator<<(
std::basic_ostream<CHAR_TYPE, CHAR_TRAITS>& stream,
shared_ptr<ELEMENT_TYPE> const& rhs);
reference to the modifiable stream
| Name | Description |
|---|---|
| stream | output stream to write to |
| rhs | right-hand side operand |