Namespaces
Variants

std:: independent_bits_engine

From cppreference.net
ヘッダーで定義 <random>
template <

class Engine,
std:: size_t W,
class UIntType

> class independent_bits_engine ;
(C++11以降)

independent_bits_engine は、ラップされたエンジンとは異なるビット数の乱数を生成する乱数エンジンアダプタです。

目次

テンプレートパラメータ

Engine - ラップされたエンジンの型
W - 生成される数値のビット幅
UIntType - 生成される乱数の型。このパラメータがcv修飾されておらず、 unsigned short unsigned int unsigned long 、または unsigned long long のいずれかでない場合、動作は未定義です。
型要件
-
Engine RandomNumberEngine の要件を満たさなければなりません。
-
W は0より大きく、 std:: numeric_limits < UIntType > :: digits 以下でなければなりません。

メンバー型

メンバー型 定義
result_type (C++11) UIntType

メンバー関数

エンジンアダプタを構築する
(public member function)
(C++11)
基盤となるエンジンの状態を設定する
(public member function)
(C++11)
基盤となるエンジンを返す
(public member function)
生成
(C++11)
基盤となるエンジンの状態を進め、生成された値を返す
(public member function)
(C++11)
アダプタの状態を指定された量だけ進める
(public member function)
特性
[static] (C++11)
出力範囲の最小値を取得する(常にゼロ)
(public static member function)
[static] (C++11)
出力範囲の最大値を取得する(常に 2 w
- 1)
(public static member function)

非メンバー関数

(C++11) (C++11) (removed in C++20)
アダプタと基盤エンジンの内部状態を比較する
(関数)
擬似乱数エンジンアダプタに対するストリーム入出力を実行する
(関数)