template <class charT, class traits, class UIntType, size_t w, size_t s, size_t r> basic_istream<charT,traits>& operator<< ( basic_istream<charT,traits>& is, subtract_with_carry_engine<UIntType,w,s,r>& swce );
Extract from input stream
Restores into swce the state whose textual representation is provided by is.
swce will generate the same sequence of random numbers as if equivalent invocations of operator() were performed on the object of the same type from which the provided text was obtained.
If is's fmtflags is not set to dec, the behavior of this function is undefined.
The same as parameter is.
A call to this function may set any of the internal state flags of is if:
(see ios_base::iostate for more info on these)
|eofbit||The end of the source of characters is reached during its operations.|
|failbit||The input obtained could not be interpreted as a valid textual representation of an object of this type.|
In this case, swve preserves the parameters and internal data it had before the call.
Notice that some eofbit cases will also set failbit.
|badbit||An error other than the above happened.|
Additionally, in any of these cases, if the appropriate flag has been set with is's member function ios::exceptions, an exception of type ios_base::failure is thrown.
Linear on the state size (template parameter r).
- Insert into output stream (function template)