std::indirect<T, Allocator>:: operator=
|
constexpr
indirect
&
operator
=
(
const
indirect
&
other
)
;
|
(1) | (C++26부터) |
|
constexpr
indirect
&
operator
=
(
indirect
&&
other
)
noexcept
(
/* 아래 참조 */
)
;
|
(2) | (C++26부터) |
|
template
<
class
U
=
T
>
constexpr indirect & operator = ( U && value ) ; |
(3) | (C++26부터) |
* this 의 내용을 value 또는 other 의 내용으로 대체합니다.
traits
를
std::
allocator_traits
<
Allocator
>
로 정의합니다:
alloc
을 사용하여
std::
forward
<
U
>
(
value
)
로 소유 객체를 생성합니다. 그렇지 않으면
**
this
=
std::
forward
<
U
>
(
value
)
와 동등합니다.
- std:: is_same_v < std:: remove_cvref_t < U > , std :: indirect > 가 false 인 경우.
- std:: is_constructible_v < T, U > 가 true 인 경우.
- std:: is_assignable_v < T & , U > 가 true 인 경우.
목차 |
매개변수
| other | - |
소유된 값(존재하는 경우)이 할당에 사용되는 또 다른
indirect
객체
|
| value | - | 소유된 값에 할당하거나 생성할 값 |
반환값
* this
예외
T
의 선택된 복사 생성자 호출 중 예외가 발생하면, 아무런 영향도 없습니다.
propagate_on_container_move_assignment
::
value
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |