Share via


operator== <random>

Comprueba si el motor del lado izquierdo del operador es igual al motor en el lado derecho.

template<class UIntType,
    UIntType A, UIntType C, UIntType M>
    bool operator==(
        const linear_congruential<UIntType, A, C, M>& left,
        const linear_congruential<UIntType, A, C, M>& right);
template<class UIntType,
    int W, int N, int M, int R,
    UIntType A, int U, int S,
    UIntType B, int T, UIntType C, int L>
    bool operator==(
        const mersenne_twister<UIntType, W, N, M, R,
            A, U, S, B, T, C, L>& left,
        const mersenne_twister<UIntType, W, N, M, R,
            A, U, S, B, T, C, L>& right);
template<class IntType,
    IntType M, int S, int R>
    bool operator==(
        const subtract_with_carry<IntType, M, S, R>& left,
        const subtract_with_carry<IntType, M, S, R>& right);
template<class RealType,
    int W, int S, int R>
    bool operator==(
        const subtract_with_carry_01<RealType, W, S, R>& left,
        const subtract_with_carry_01<RealType, W, S, R>& right);
template<class Engine,
    int P, int R>
    bool operator==(
        const discard_block<Engine, F, R>& left,
        const discard_block<Engine, F, R>& right);
template<class Engine1, int S1,
    class Engine2, int S2>
    bool operator==(
        const xor_combine<Engine1, S1, Engine2, S2>& left,
        const xor_combine<Engine1, S1, Engine2, S2>& right);
template<class Engine,
    size_t W, class UIntType>
    bool operator==(
        const independent_bits_engine<Engine, W, U>& left,
        const independent_bits_engine<Engine, W, U>& right);
template<class Engine,
    size_t K>
    bool operator==(
        const shuffle_order_engine<Engine, K>& left,
        const shuffle_order_engine<Engine, K>& right);

Parámetros

  • left
    un objeto que representa un motor.

  • right
    un objeto que representa un motor.

Comentarios

Este operador de la plantilla devuelve true si los operandos de motor tienen los mismos parámetros y estado almacenados, en este caso producen la misma secuencia.

Requisitos

encabezado: <aleatorio>

espacio de nombres: std

Vea también

Referencia

<random>