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