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

履歴 編集

function
<random>

std::shuffle_order_engine::base(C++11)

const Engine& base() const noexcept;

概要

元となる乱数生成器を取得する。

戻り値

メンバ変数として保持している、元となる乱数生成器へのconst参照を返す。

#include <iostream>
#include <random>

int main()
{
  std::knuth_b engine;

  // 元となる乱数生成器を取得
  const std::minstd_rand0& base_engine = engine.base();
}

出力

バージョン

言語

  • C++11

処理系

参照