Right shift operators

Synopses

Declared in <bslstl_istringstream.h>

Integer arithmetic extractors

__istream_type&
operator>>(bool& __n);

Extract a boolean value from this stream.

BaseStream&
operator>>(bool& value);
__istream_type&
operator>>(double& __f);

Extract a double from this stream.

BaseStream&
operator>>(double& value);

Floating point arithmetic extractors

__istream_type&
operator>>(float& __f);

Extract a float from this stream.

BaseStream&
operator>>(float& value);
__istream_type&
operator>>(int& __n);

Extract an int from this stream.

BaseStream&
operator>>(int& value);
__istream_type&
operator>>(long& __n);

Extract a long from this stream.

BaseStream&
operator>>(long& value);
__istream_type&
operator>>(long double& __f);

Extract a long double from this stream.

BaseStream&
operator>>(long double& value);
__istream_type&
operator>>(long long& __n);

Extract a long long from this stream.

BaseStream&
operator>>(long long& value);
__istream_type&
operator>>(short& __n);

Extract a short from this stream.

BaseStream&
operator>>(short& value);
__istream_type&
operator>>(unsigned int& __n);

Extract an unsigned int from this stream.

BaseStream&
operator>>(unsigned int& value);
__istream_type&
operator>>(unsigned long& __n);

Extract an unsigned long from this stream.

BaseStream&
operator>>(unsigned long& value);
__istream_type&
operator>>(unsigned long long& __n);

Extract an unsigned long long from this stream.

BaseStream&
operator>>(unsigned long long& value);
__istream_type&
operator>>(unsigned short& __n);

Extract an unsigned short from this stream.

BaseStream&
operator>>(unsigned short& value);

Basic arithmetic extractors

__istream_type&
operator>>(void*& __p);

Extract a pointer value from this stream.

BaseStream&
operator>>(void*& value);

Extracting into another streambuf.

__istream_type&
operator>>(__streambuf_type* __sb);

Extract characters into a stream buffer until end‐of‐file.

BaseStream&
operator>>(std::basic_streambuf<char_type, traits_type>* streambuf);

Apply a basic_istream manipulator to this stream.

__istream_type&
operator>>(__ios_type&(* __pf)(__ios_type&));

Interface for manipulators.

__istream_type&
operator>>(__istream_type&(* __pf)(__istream_type&));
__istream_type&
operator>>(ios_base&(* __pf)(ios_base&));

Apply an ios_base manipulator to this stream.

BaseStream&
operator>>(ios_base&(* manipulator)(ios_base&));

Apply a basic_ios manipulator to this stream.

BaseStream&
operator>>(std::basic_ios<char_type, traits_type>&(* manipulator)(std::basic_ios<char_type, traits_type>&));

Return Value

  • *this if successful

  • a reference to this stream

Parameters

Name

Description

__n

A variable of builtin integral type.

value

destination for the extracted value

__f

A variable of builtin floating point type.

__p

A variable of pointer type.

__sb

A pointer to a streambuf

streambuf

destination stream buffer

manipulator

function to apply

Created with MrDocs