Struct param_type

Synopsis

#include <include/EASTL/random.h>

struct param_type

Description

For uniform_int_distribution, param_type defines simply the min and max values of the range returned by operator(). It may mean something else for other distribution types.

Methods

param_typeuniform_int_distribution
a
b
operator!=
operator==

Source

Lines 60-73 in include/EASTL/random.h.

struct param_type
{
    explicit param_type(IntType a = 0, IntType b = eastl::numeric_limits<IntType>::max());
    result_type a() const;
    result_type b() const;
    bool operator==(const param_type& x) { return (x.mA == mA) && (x.mB == mB); }
    bool operator!=(const param_type& x) { return (x.mA != mA) || (x.mB != mB); }
protected:
    IntType mA;
    IntType mB;
};





Add Discussion as Guest

Log in