operator>> <random>

Extrai informações do estado de um fluxo.

template<class Elem, class Traits, class UIntType,
    UIntType A, UIntType C, UIntType M>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        linear_congruential<UIntType, A, C, M>& right);
template<class Elem, class Traits, class UIntType,
    int W, int N, int M, int R,
    UIntType A, int U, int S,
    UIntType B, int T, UIntType C, int L>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        mersenne_twister<UIntType, W, N, M, R,
            A, U, S, B, T, C, L>& right);
template<class Elem, class Traits, class IntType,
    IntType M, int S, int R>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        subtract_with_carry<IntType, M, S, R>& right);
template<class Elem, class Traits, class RealType,
    int W, int S, int R>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        subtract_with_carry_01<RealType, W, S, R>& right);
template<class Elem, class Traits, class Engine,
    int P, int R>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        discard_block<Engine, F, R>& right);
template<class Elem, class Traits, class Engine1, int S1,
    class Engine2, int S2>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        xor_combine<Engine1, S1, Engine2, S2>& right);

template<class Elem, class Traits>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        bernoulli_distribution& right);
template<class Elem, class Traits, class IntType
    class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        binomial_distribution<IntType, RealType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        exponential_distribution<RealType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        gamma_distribution<RealType>& right);
template<class Elem, class Traits, class IntType
    class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        geometric_distribution<IntType, RealType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        normal_distribution<RealType>& right);
template<class Elem, class Traits, class IntType
    class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        poisson_distribution<IntType, RealType>& right);
template<class Elem, class Traits, class IntType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        uniform_int<IntType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        uniform_real<RealType>& right);
template<class Elem, class Traits, class Engine,
    size_t W, class UIntType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        independent_bits_engine<Engine, W, U>& right);
template<class Elem, class Traits, class Engine,
    size_t K>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        shuffle_order_engine<Engine, K>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        cauchy_distribution<RealType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        chi_squared_distribution<RealType>& right);
template<class Elem, class Traits, class IntType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        discrete_distribution<IntType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        extreme_value_distribution<RealType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        fisher_f_distribution<RealType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        lognormal_distribution<RealType>& right);
template<class Elem, class Traits, class IntType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        negative_binomial_distribution<IntType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        piecewise_constant_distribution<RealType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        student_t_distribution<RealType>& right);
template<class Elem, class Traits, class IntType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        uniform_int_distribution<IntType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        uniform_real_distribution<RealType>& right);
template<class Elem, class Traits, class RealType>
    std::basic_istream<Elem, Traits>& operator>>(
        std::basic_istream<Elem, Traits>& istr,
        weibull_distribution<RealType>& right);

Parâmetros

Parâmetro

Descrição

istr

O fluxo contendo informações de estado.

right

O objeto ou do mecanismo de distribuição para receber informações de estado.

Comentários

Os extratos de função do modelo de informações suficientes de istr de fluxo em right para restaurar seus parâmetros armazenados de uma inserção anterior.O fluxo deve extrair valores inteiros como decimais.

Requisitos

Cabeçalho: <random>

namespace: STD

Consulte também

Referência

<random>