Пространства имён
Варианты
Действия

operator<<,>>(std::subtract_with_carry_engine)

Материал из cppreference.com

 
 
 
Псевдослучайных чисел поколения
Двигатели и адаптеры
Original:
Engines and engine adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
linear_congruential_engine(C++11)
mersenne_twister_engine(C++11)
subtract_with_carry_engine(C++11)
discard_block_engine(C++11)
independent_bits_engine(C++11)
shuffle_order_engine(C++11)
Генераторы
Original:
Generators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
random_device(C++11)
Распределения
Original:
Distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Равномерное распределение
Original:
Uniform distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
uniform_int_distribution(C++11)
uniform_real_distribution(C++11)
generate_canonical(C++11)
Бернулли распределения
Original:
Bernoulli distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bernoulli_distribution(C++11)
binomial_distribution(C++11)
negative_binomial_distribution(C++11)
geometric_distribution(C++11)
Распределения Пуассона
Original:
Poisson distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
poisson_distribution(C++11)
exponential_distribution(C++11)
gamma_distribution(C++11)
weibull_distribution(C++11)
extreme_value_distribution(C++11)
Нормальное распределение
Original:
Normal distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
normal_distribution(C++11)
lognormal_distribution(C++11)
chi_squared_distribution(C++11)
cauchy_distribution(C++11)
fisher_f_distribution(C++11)
student_t_distribution(C++11)
Выборка распределения
Original:
Sampling distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
discrete_distribution(C++11)
piecewise_constant_distribution(C++11)
piecewise_linear_distribution(C++11)
Семенной последовательности
Original:
Seed Sequences
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
seed_seq(C++11)
C библиотеки
Original:
C library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rand
srand
RAND_MAX
 
std::subtract_with_carry_engine
Член функций
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
subtract_with_carry_engine::subtract_with_carry_engine
subtract_with_carry_engine::seed
Поколение
Original:
Generation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
subtract_with_carry_engine::operator()
subtract_with_carry_engine::discard
Характеристики
Original:
Characteristics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
subtract_with_carry_engine::min
subtract_with_carry_engine::max
Не являющиеся членами функций
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator==
operator!=
operator<<
operator>>
 
template< class CharT, class Traits, class ResultType,

          class UIntType, size_t w, size_t s, size_t r >
std::basic_ostream<CharT,Traits>&
    operator<<( std::basic_ostream<CharT,Traits>& ost,

                const subtract_with_carry_engine<UIntType,w,s,r>& e );
(1) (начиная с C++11)
template< class CharT, class Traits, class ResultType,

          class UIntType, size_t w, size_t s, size_t r >
std::basic_istream<CharT,Traits>&
    operator>>( std::basic_istream<CharT,Traits>& ist,

                subtract_with_carry_engine<UIntType,w,s,r>& e );
(2) (начиная с C++11)
1)
Сериализует внутреннее состояние псевдослучайных чисел двигателя e в виде последовательности десятичных чисел, разделенных одним или несколькими пробелами, и вставляет его в поток ost. Символ-заполнитель и форматирование флаги потока игнорируются и не влияет.
Original:
Serializes the internal state of the pseudo-random number engine e as a sequence of decimal numbers separated by one or more spaces, and inserts it to the stream ost. The fill character and the formatting flags of the stream are ignored and unaffected.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Восстанавливает внутреннее состояние псевдослучайных чисел двигателя e из сериализованного представления, которое было создано ранее призыв к operator<< с помощью потока с тем же проникнут языка и той же CharT и Traits. Если вход не может быть десериализован, e остается неизменным и failbit поднимается на ist
Original:
Restores the internal state of the pseudo-random number engine e from the serialized representation, which was created by an earlier call to operator<< using a stream with the same imbued locale and the same CharT and Traits. If the input cannot be deserialized, e is left unchanged and failbit is raised on ist
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Если текстовое представление написана с использованием os << x и что представление восстановлен в той же или другой y объект того же типа, используя is >> y, то x==y.
Original:
If a textual representation is written using os << x and that representation is restored into the same or a different object y of the same type using is >> y, then x==y.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Содержание

[править] Параметры

ost -
Выходной поток для вставки данных
Original:
output stream to insert the data to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ist -
входной поток, чтобы извлечь данные
Original:
input stream to extract the data from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
e -
псевдослучайных чисел двигателя
Original:
pseudo-random number engine
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Возвращаемое значение

1) ost
2) ist

[править] Сложность

[править] Исключения

1)
(Нет)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Может бросить std::ios::failure при установке failbit
Original:
May throw std::ios::failure when setting failbit
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.