最終更新日時(UTC):
が更新

履歴 編集

function template
<random>

std::philox_engine::operator==(C++26)

friend bool operator==(const philox_engine& x, const philox_engine& y);

概要

等値比較を行う。

戻り値

abの状態シーケンスの、全ての値を等値比較し、等しければtrue、そうでなければfalseを返す。

計算量

O(状態シーケンスのサイズ)

#include <cassert>
#include <random>

int main()
{
  std::philox4x32 e1;
  std::philox4x32 e2;

  assert(e1 == e2);
  assert(!(e1 != e2));
}

出力

バージョン

言語

  • C++26

処理系