std::experimental::ranges::tagged<Base,Tags...>:: operator=
|
tagged
&
operator
=
(
tagged
&&
that
)
=
default
;
|
(1) | |
|
tagged
&
operator
=
(
const
tagged
&
that
)
=
default
;
|
(2) | |
|
template
<
class
Other
>
requires Assignable
<
Base
&
, Other
>
|
(3) | |
|
template
<
class
Other
>
requires Assignable
<
Base
&
,
const
Other
&
>
|
(4) | |
|
template
<
class
U
>
requires Assignable
<
Base
&
, U
>
&&
!
Same
<
std::
decay_t
<
U
>
, tagged
>
|
(5) | |
Присваивает содержимое that объекту * this .
tagged
имеет операторы копирующего и перемещающего присваивания по умолчанию, которые вызывают соответствующий оператор присваивания
Base
.
tagged
специализации с соответствующими тегами. Эквивалентно
static_cast
<
Base
&
>
(
*
this
)
=
static_cast
<
Other
&&
>
(
that
)
;
.
tagged
с соответствующими тегами. Эквивалентно
static_cast
<
Base
&
>
(
*
this
)
=
static_cast
<
const
Other
&
>
(
that
)
;
.
Base
. Эквивалентно
static_cast
<
Base
&
>
(
*
this
)
=
std::
forward
<
U
>
(
that
)
;
.
Возвращаемое значение
* this .