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

履歴 編集

function template
<random>

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

template <class charT, class traits>
friend basic_ostream<charT, traits>&
  operator<<(basic_ostream<charT, traits>& os, const philox_engine& x);

概要

ストリームへの出力を行う。

効果

osに対してフォーマットフラグios_base::dec | ios_base::leftを設定する。
フォーマットを設定したosに対して、エンジンxの現在状態を出力する。

事後条件

osのフォーマットフラグが、この関数を呼び出す前の状態に戻ること。

戻り値

os

#include <iostream>
#include <random>

int main()
{
  std::philox4x32 engine;
  std::cout << engine << std::endl;
}

出力

(未検証)

バージョン

言語

  • C++26

処理系