std::seed_seq:: param
| 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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
seed_seq::param
|
|
template
<
class
OutputIt
>
void param ( OutputIt dest ) const ; |
(C++11 이후) | |
저장된 시드들을
dest
로 시작하는 범위에 복사합니다. 다음 코드와 동일합니다:
std::
copy
(
v
.
begin
(
)
,
v
.
end
(
)
, dest
)
;
.
result_type
타입의 값들이
writable
하지 않다면,
dest
에 대해 프로그램은 형식에 맞지 않습니다.
만약
OutputIt
이(가)
LegacyOutputIterator
의 요구 사항을 만족하지 않으면, 동작은 정의되지 않습니다.
목차 |
매개변수
| dest | - | 출력 범위의 시작 반복자 |
예외
dest 에 대한 연산에서 발생하는 예외만을 던집니다.
예제
#include <iostream> #include <iterator> #include <random> int main() { std::seed_seq s1 = {-1, 0, 1}; s1.param(std::ostream_iterator<int>(std::cout, " ")); }
출력:
-1 0 1
결함 보고서
다음 동작 변경 결함 보고서들은 이전에 발표된 C++ 표준에 소급 적용되었습니다.
| DR | 적용 대상 | 게시된 동작 | 올바른 동작 |
|---|---|---|---|
| LWG 2180 | C++11 |
seed_seq::param
이 예외를 발생시키지 않음
|
예외를 발생시킬 수 있음 |