Right shift operators

Synopses

Declared in <bslstl_bitset.h>

template<
    typename _CharT2,
    typename _Traits2,
    typename _Alloc>
basic_istream<_CharT2, _Traits2>&
operator>>(
    basic_istream<_CharT2, _Traits2>&,
    basic_string<_CharT2, _Traits2, _Alloc>&);
template<
    typename _CharT2,
    typename _Traits2,
    typename _Alloc>
basic_istream<_CharT2, _Traits2>&
operator>>(
    basic_istream<_CharT2, _Traits2>&,
    basic_string<_CharT2, _Traits2, _Alloc>&);

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);

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);

Return Value

  • reference to the input stream is

  • reference to the input stream

Parameters

Name

Description

is

input stream

str

string to read into or parse

x

bitset to populate from the stream

Created with MrDocs