template<class E, class T>
basic_istream<E, T>& operator>>(basic_istream<E, T> is, E *s);
template<class E, class T>
basic_istream<E, T>& operator>>(basic_istream<E, T> is, E& c);
template<class T>
basic_istream<char, T>& operator>>(basic_istream<char, T> is, signed char *s);
template<class T>
basic_istream<char, T>& operator>>(basic_istream<char, T> is, signed char& c);
template<class T>
basic_istream<char, T>& operator>>(basic_istream<char, T> is, unsigned char *s);
template<class T>
basic_istream<char, T>& operator>>(basic_istream<char, T> is, unsigned char& c);
The template function:
template<class E, class T>
basic_istream<E, T>& operator>>(basic_istream<E, T>& is, E *s);
extracts up to n - 1
elements and stores them in the array beginning at s
. If is.
width
()
is greater than zero, n
is
is.width()
; otherwise it is the largest array of E
that can be declared. The function always stores E(0)
after any
extracted elements it stores. Extraction stops early on end-of-file or on any element (which is not extracted) that would
be discarded by ws
. If the function extracts no elements, it calls is.
setstate
(failbit)
. In any case, it calls
is.width(0)
and returns is
.
The template function:
template<class E, class T>
basic_istream<E, T>& operator>>(basic_istream<E, T>& is, char& c);
extracts an element, if possible, and stores it in c
. Otherwise, it calls is.
setstate
(failbit)
. In any case, it returns
is
.
The template function:
template<class T>
basic_istream<char, T>& operator>>(basic_istream<char, T> is, signed char *s);
returns is >> (char *)s
.
The template function:
template<class T>
basic_istream<char, T>& operator>>(basic_istream<char, T> is, signed char& c);
returns is >> (char&)c
.
The template function:
template<class T>
basic_istream<char, T>& operator>>(basic_istream<char, T> is, unsigned char *s);
returns is >> (char *)s
.
The template function:
template<class T>
basic_istream<char, T>& operator>>(basic_istream<char, T> is, unsigned char& c);
returns is >> (char&)c
.