std::gslice_array<T>:: operator=
From cppreference.net
<
cpp
|
numeric
|
valarray
|
gslice array
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::gslice_array
| Member functions | ||||
|
gslice_array::operator=
|
||||
|
void
operator
=
(
const
T
&
value
)
const
;
|
(1) | |
|
void
operator
=
(
const
std::
valarray
<
T
>
&
val_arr
)
const
;
|
(2) | |
|
const
gslice_array
&
operator
=
(
const
gslice_array
&
other_arr
)
const
;
|
(3) | |
참조된 모든 요소에 값을 할당합니다.
1)
모든 요소에
value
를 할당합니다.
2)
val_arr
의 요소들을
*
this
가 참조하는 요소들에 할당합니다.
3)
other_arr
에서 선택된 요소들을
*
this
가 참조하는 요소들에 할당합니다.
목차 |
매개변수
| value | - | 참조된 모든 요소에 할당할 값 |
| val_arr | - | std::valarray 할당할 값 배열 |
| other_arr | - | std::gslice_array 할당할 배열 |
반환값
1,2)
(없음)
3)
*
this
예제
|
이 섹션은 불완전합니다
이유: 예시가 없음 |
결함 보고서
다음 동작 변경 결함 보고서는 이전에 발표된 C++ 표준에 소급 적용되었습니다.
| DR | 적용 대상 | 게시된 동작 | 올바른 동작 |
|---|---|---|---|
| LWG 123 | C++98 | overload (2)가 non-const였음 | const로 변경됨 |
| LWG 253 | C++98 | 복사 할당 연산자가 private였음 | public으로 변경됨 |
| LWG 621 | C++98 | 복사 할당 연산자가 non-const였음 | const로 변경됨 |