libstdc++
Collaboration diagram for Uniform Distributions:

Classes

struct  std::uniform_real_distribution< _RealType >::param_type
 
class  std::uniform_real_distribution< _RealType >
 

Functions

template<typename _IntType >
bool std::operator!= (const std::uniform_int_distribution< _IntType > &__d1, const std::uniform_int_distribution< _IntType > &__d2)
 
template<typename _IntType >
bool std::operator!= (const std::uniform_real_distribution< _IntType > &__d1, const std::uniform_real_distribution< _IntType > &__d2)
 
template<typename _IntType , typename _CharT , typename _Traits >
std::basic_ostream< _CharT, _Traits > & std::operator<< (std::basic_ostream< _CharT, _Traits > &, const std::uniform_int_distribution< _IntType > &)
 
template<typename _RealType , typename _CharT , typename _Traits >
std::basic_ostream< _CharT, _Traits > & std::operator<< (std::basic_ostream< _CharT, _Traits > &, const std::uniform_real_distribution< _RealType > &)
 
template<typename _IntType , typename _CharT , typename _Traits >
std::basic_istream< _CharT, _Traits > & std::operator>> (std::basic_istream< _CharT, _Traits > &, std::uniform_int_distribution< _IntType > &)
 
template<typename _RealType , typename _CharT , typename _Traits >
std::basic_istream< _CharT, _Traits > & std::operator>> (std::basic_istream< _CharT, _Traits > &, std::uniform_real_distribution< _RealType > &)
 

Detailed Description

Function Documentation

◆ operator!=() [1/2]

template<typename _IntType >
bool std::operator!= ( const std::uniform_int_distribution< _IntType > &  __d1,
const std::uniform_int_distribution< _IntType > &  __d2 
)
inline

Return true if two uniform integer distributions have different parameters.

Definition at line 1700 of file random.h.

◆ operator!=() [2/2]

template<typename _IntType >
bool std::operator!= ( const std::uniform_real_distribution< _IntType > &  __d1,
const std::uniform_real_distribution< _IntType > &  __d2 
)
inline

Return true if two uniform real distributions have different parameters.

Definition at line 1921 of file random.h.

◆ operator<<() [1/2]

template<typename _IntType , typename _CharT , typename _Traits >
std::basic_ostream< _CharT, _Traits > & std::operator<< ( std::basic_ostream< _CharT, _Traits > &  __os,
const std::uniform_int_distribution< _IntType > &  __x 
)

Inserts a uniform_int_distribution random number distribution __x into the output stream os.

Parameters
__osAn output stream.
__xA uniform_int_distribution random number distribution.
Returns
The output stream with the state of __x inserted or in an error state.

Definition at line 881 of file bits/random.tcc.

References std::ios_base::flags().

◆ operator<<() [2/2]

template<typename _RealType , typename _CharT , typename _Traits >
std::basic_ostream< _CharT, _Traits > & std::operator<< ( std::basic_ostream< _CharT, _Traits > &  __os,
const std::uniform_real_distribution< _RealType > &  __x 
)

Inserts a uniform_real_distribution random number distribution __x into the output stream __os.

Parameters
__osAn output stream.
__xA uniform_real_distribution random number distribution.
Returns
The output stream with the state of __x inserted or in an error state.

Definition at line 944 of file bits/random.tcc.

◆ operator>>() [1/2]

template<typename _IntType , typename _CharT , typename _Traits >
std::basic_istream< _CharT, _Traits > & std::operator>> ( std::basic_istream< _CharT, _Traits > &  __is,
std::uniform_int_distribution< _IntType > &  __x 
)

Extracts a uniform_int_distribution random number distribution __x from the input stream __is.

Parameters
__isAn input stream.
__xA uniform_int_distribution random number generator engine.
Returns
The input stream with __x extracted or in an error state.

Definition at line 921 of file bits/random.tcc.

References std::ios_base::flags(), and std::uniform_int_distribution< _IntType >::param().

◆ operator>>() [2/2]

template<typename _RealType , typename _CharT , typename _Traits >
std::basic_istream< _CharT, _Traits > & std::operator>> ( std::basic_istream< _CharT, _Traits > &  __is,
std::uniform_real_distribution< _RealType > &  __x 
)

Extracts a uniform_real_distribution random number distribution __x from the input stream __is.

Parameters
__isAn input stream.
__xA uniform_real_distribution random number generator engine.
Returns
The input stream with __x extracted or in an error state.

Definition at line 982 of file bits/random.tcc.

References std::ios_base::flags(), and std::uniform_real_distribution< _RealType >::param().