Namespaces
Variants

std::experimental::ranges::tagged<Base,Tags...>:: operator=

From cppreference.net
tagged & operator = ( tagged && that ) = default ;
(1)
tagged & operator = ( const tagged & that ) = default ;
(2)
template < class Other >

erfordert Assignable < Base & , Other >
constexpr tagged & operator = ( ranges:: tagged < Other, Tags... > && that )

noexcept ( std:: is_nothrow_assignable < Base & , Other > :: value ) ;
(3)
template < class Other >

erfordert Assignable < Base & , const Other & >

constexpr tagged & operator = ( const ranges:: tagged < Other, Tags... > & that ) ;
(4)
template < class U >

erfordert Assignable < Base & , U > && ! Same < std:: decay_t < U > , tagged >

constexpr tagged & operator = ( U && that ) noexcept ( std:: is_nothrow_assignable < Base & , U > :: value ) ;
(5)

Weist den Inhalt von that an * this zu.

1,2) tagged verfügt über standardmäßige Kopier- und Verschiebezuweisungsoperatoren, die den entsprechenden Zuweisungsoperator von Base aufrufen.
3) Konvertierende Zuweisung durch Verschiebung von einer anderen tagged Spezialisierung mit übereinstimmenden Tags. Entspricht static_cast < Base & > ( * this ) = static_cast < Other && > ( that ) ; .
4) Konvertierende Kopierzuweisung von einer anderen tagged Spezialisierung mit übereinstimmenden Tags. Entspricht static_cast < Base & > ( * this ) = static_cast < const Other & > ( that ) ; .
5) Weist that dem Base -Subobjekt zu. Entspricht static_cast < Base & > ( * this ) = std:: forward < U > ( that ) ; .

Rückgabewert

* this .