- random[meta header]
- std[meta namespace]
- function template[meta id-type]
- cpp11[meta cpp]
namespace std {
template <class UIntType, UIntType a, UIntType c, UIntType m>
bool operator==(
const linear_congruential_engine<UIntType, a, c, m>& x,
const linear_congruential_engine<UIntType, a, c, m>& y);
}
等値比較を行う。
x
とy
の状態シーケンスの、全ての値を等値比較し、等しければtrue
、そうでなければfalse
を返す。
O(状態シーケンスのサイズ)
#include <iostream>
#include <random>
int main()
{
std::minstd_rand e1;
std::minstd_rand e2;
if (e1 == e2) {
std::cout << "equal" << std::endl;
}
else {
std::cout << "not equal" << std::endl;
}
}
- std::minstd_rand[link /reference/random/minstd_rand.md]
equal
- C++11
- Clang: ??
- GCC: 4.7.2 [mark verified]
- ICC: ??
- Visual C++: ??