Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 914 Bytes

File metadata and controls

51 lines (38 loc) · 914 Bytes

base

  • random[meta header]
  • std[meta namespace]
  • independent_bits_engine[meta class]
  • function[meta id-type]
  • cpp11[meta cpp]
const Engine& base() const noexcept;

概要

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

戻り値

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

#include <iostream>
#include <random>
#include <cstdint>

int main()
{
  std::independent_bits_engine<std::mt19937, 64, std::uint64_t> engine;

  // 元となる乱数生成器を取得
  const std::mt19937& base_engine = engine.base();
}
  • base()[color ff0000]

出力

バージョン

言語

  • C++11

処理系

参照