bsl::operator<<

Stream insertion operators

Synopses

Declared in <bslstl_bitset.h>

Write a string to an output stream.

template<
    class CHAR_TYPE,
    class CHAR_TRAITS,
    class ALLOCATOR>
std::basic_ostream<CHAR_TYPE, CHAR_TRAITS>&
operator<<(
    std::basic_ostream<CHAR_TYPE, CHAR_TRAITS>& os,
    basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR> const& str);
» more...

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.

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);
» more...

Insert a textual representation of the specified bitset x into os.

template<
    class CHAR_TYPE,
    class TRAITS,
    std::size_t N>
std::basic_ostream<CHAR_TYPE, TRAITS>&
operator<<(
    std::basic_ostream<CHAR_TYPE, TRAITS>& os,
    bitset<N> const& x);
» more...

Return Value

  • reference to the output stream os
  • reference to the modifiable stream
  • reference to the output stream

Parameters

NameDescription
osoutput stream
strstring to write
streamoutput stream to write to
rhsright-hand side operand
xbitset whose textual form is inserted