std::discard_block_engine<Engine,P,R>:: seed
From cppreference.net
<
cpp
|
numeric
|
random
|
discard block 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::discard_block_engine
| Member functions | ||||
|
discard_block_engine::seed
|
||||
| Generation | ||||
| Characteristics | ||||
| Non-member functions | ||||
|
(C++11)
(C++11)
(until C++20)
|
||||
|
(C++11)
(C++11)
|
|
void
seed
(
)
;
|
(1) | (C++11 이후) |
|
void
seed
(
result_type value
)
;
|
(2) | (C++11 이후) |
|
template
<
class
SeedSeq
>
void seed ( SeedSeq & seq ) ; |
(3) | (C++11 이후) |
내부 엔진의 상태를 새로운 시드 값으로 재초기화합니다.
1)
기본 시드 값으로 내부 엔진을 시드합니다. 효과적으로
e.
seed
(
)
를 호출하며, 여기서
e
는 내부 엔진입니다.
2)
기본 엔진에 시드 값
value
를 설정합니다. 효과적으로
e.
seed
(
value
)
를 호출하며, 여기서
e
는 기본 엔진을 나타냅니다.
3)
기본 엔진을 시드 시퀀스
seq
로 시드합니다. 효과적으로
e.
seed
(
seq
)
를 호출하며, 여기서
e
는 기본 엔진입니다.
매개변수
| value | - | 내부 엔진 상태 초기화에 사용할 시드 값 |
| seq | - | 내부 엔진 상태 초기화에 사용할 시드 시퀀스 |
예외
결함 보고서
다음의 동작 변경 결함 보고서들은 이전에 발표된 C++ 표준에 소급 적용되었습니다.
| DR | 적용 대상 | 게시된 동작 | 올바른 동작 |
|---|---|---|---|
| LWG 2181 | C++11 |
seq.generate
호출이 예외를 발생시키는 경우에도
(
3
)
오버로드는 예외를 발생시키지 않음
|
예외를 전파함 |