template <class charT, class traits, class IntType>
basic_ostream<charT,traits>& operator<< ( basic_ostream<charT,traits>& os,
const bernoulli_distribution<IntType>& distr );
Insert into output stream
Writes a textual representation of the distribution parameters and any other internal data kept by the object, in such a way that if this same text is inserted using operator>> into an object of the same type, the same sequence of random numbers would be generated by equivalent invocations of operator().
- ostream object on which the insertion operation is performed.
- Distribution object inserted.
The same as parameter os.
If some error happens during the output operation, the stream's badbit flag is set, and if the appropriate flag has been set with ios::exceptions, an exception is thrown.