std::shuffle_order_engine<Engine,K>:: shuffle_order_engine
From cppreference.net
<
cpp
|
numeric
|
random
|
shuffle order engine
C++
Numerics library
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pseudo-random number generation
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::shuffle_order_engine
| Member functions | ||||
|
shuffle_order_engine::shuffle_order_engine
|
||||
| Generation | ||||
| Characteristics | ||||
| Non-member functions | ||||
|
(C++11)
(C++11)
(until C++20)
|
||||
|
(C++11)
(C++11)
|
|
shuffle_order_engine
(
)
;
|
(1) | (C++11以降) |
|
explicit
shuffle_order_engine
(
result_type s
)
;
|
(2) | (C++11以降) |
|
template
<
class
SeedSeq
>
explicit shuffle_order_engine ( SeedSeq & seq ) ; |
(3) | (C++11以降) |
|
explicit
shuffle_order_engine
(
const
Engine
&
e
)
;
|
(4) | (C++11以降) |
|
explicit
shuffle_order_engine
(
Engine
&&
e
)
;
|
(5) | (C++11以降) |
新しい疑似乱数エンジンアダプタを構築します。
1)
デフォルトコンストラクタ。基盤となるエンジンもデフォルト構築されます。
2)
基盤エンジンを
s
で構築します。
3)
基盤エンジンをシードシーケンス
seq
で構築します。
4)
基盤エンジンを
e
のコピーで構築します。
5)
基盤エンジンを
e
でムーブ構築します。
e
はその後、未規定だが有効な状態を保持します。
目次 |
パラメータ
| s | - | 基盤となるエンジンを構築するための整数値 |
| seq | - | 基盤となるエンジンを構築するためのシードシーケンス |
| e | - | 初期化に使用する擬似乱数エンジン |
例外
例
不具合報告
以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。
| DR | 適用対象 | 公開時の動作 | 正しい動作 |
|---|---|---|---|
| LWG 2181 | C++11 |
オーバーロード
(
3
)
は
seq.generate
呼び出しが例外をスローしても例外をスローしない
|
例外を伝播する |