bsl::operator>>

Right shift operators

Synopses

Declared in <bslstl_bitset.h>

Extract a whitespace-delimited word into a string.

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

Extract a bitset from the specified input stream is into x.

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

Return Value

  • reference to the input stream is
  • reference to the input stream

Parameters

NameDescription
isinput stream
strstring to read into or parse
xbitset to populate from the stream