Envoyé par La norme, 21.4.8.9/7
Effects: Behaves as an unformatted input function (as described in 27.7.2.3, paragraph 1). After constructing a sentry object, extracts characters and stores them into successive locations of an array whose first element is designated by s.319 Characters are extracted and stored until one of the following occurs:
1. end-of-file occurs on the input sequence (in which case the function calls setstate(eofbit));
2. traits::eq(c, delim) for the next available input character c (in which case the input characteris extracted but not stored);
3. n is less than one or n - 1 characters are stored (in which case the function calls setstate(failbit)).
These conditions are tested in the order shown.
If the function extracts no characters, it calls setstate(failbit) (which may throw ios_base::failure (27.5.5.4))