Class param_type
boost::random::uniform_smallint::param_type
Synopsis
class param_type {
public:
typedef uniform_smallint distribution_type;
param_type(IntType = 0, IntType = 9);
IntType a() const;
IntType b() const;
template<typename CharT, typename Traits>
friend std::basic_ostream< CharT, Traits > &
operator<<(std::basic_ostream< CharT, Traits > &, const param_type &);
template<typename CharT, typename Traits>
friend std::basic_istream< CharT, Traits > &
operator>>(std::basic_istream< CharT, Traits > &, const param_type &);
friend bool operator==(const param_type &, const param_type &);
friend bool operator!=(const param_type &, const param_type &);
};
Description
param_type
public
construct/copy/destruct
- <
param_type(IntTypemin=0,IntTypemax=9);
>конструирует параметры распределения<uniform_smallint
>
.
param_type
public member functions
- <
IntTypea()const;
>Возвращает минимальное значение.
- <
IntTypeb()const;
>Возвращает максимальное значение.
param_type
friend functions
- <
template<typenameCharT,typenameTraits>
friendstd::basic_ostream<CharT,Traits>&
operator<<(std::basic_ostream<CharT,Traits>&os,
constparam_type¶m);
>Записывает параметры в<std::ostream
>
.
- <
template<typenameCharT,typenameTraits>
friendstd::basic_istream<CharT,Traits>&
operator>>(std::basic_istream<CharT,Traits>&is,
constparam_type¶m);
>Считывает параметры из<std::istream
>.
- <
friendbooloperator==(constparam_type&lhs,constparam_type&rhs);
>Возвращается истинно, если два набора параметров равны.
- <
friendbooloperator!=(constparam_type&lhs,constparam_type&rhs);
>Возвращается истинно, если два набора параметров различны.