basic_istream::ignore

basic_istream::ignore

basic_istream& ignore(streamsize n = 1,
    int_type delim = T::eof());

The unformatted input function extracts up to n elements and discards them. If n equals numeric_limits<int>::max(), however, it is taken as arbitrarily large. Extraction stops early on end-of-file or on an element x such that T::to_int_type(x) compares equal to delim (which is also extracted). The function returns *this.