Skip to content

Latest commit

 

History

History
64 lines (49 loc) · 1.24 KB

File metadata and controls

64 lines (49 loc) · 1.24 KB

operator==

  • 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);
}

概要

等値比較を行う。

戻り値

xyの状態シーケンスの、全ての値を等値比較し、等しければ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 [mark verified]
  • ICC: ??
  • Visual C++: 2010 [mark verified], 2012 [mark verified], 2013 [mark verified], 2015 [mark verified], 2017 [mark verified]

参照