命名空间
变体
操作

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

来自 cppreference.cn
 
 
实验性
技术规范
文件系统库 (filesystem TS)
库基础 (library fundamentals TS)
库基础 2 (library fundamentals TS v2)
库基础 3 (library fundamentals TS v3)
并行性扩展 (parallelism TS)
并行性扩展 2 (parallelism TS v2)
并发性扩展 (concurrency TS)
并发性扩展 2 (concurrency TS v2)
概念 (concepts TS)
范围 (ranges TS)
反射 (reflection TS)
数学特殊函数 (special functions TR)
实验性非 TS
模式匹配
线性代数
std::execution
契约
2D 图形
 
 
通用工具库
实用组件
函数对象
元编程和类型特征
标记对和元组
                          
标签指定符
                                      
                          
 
 
tagged &operator=( tagged&& that ) = default;
(1)
tagged &operator=( const tagged& that ) = default;
(2)
template< class Other >

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

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

    requires Assignable<Base&, const Other&>

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

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

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

that 的内容赋值给 *this

1,2) tagged 具有默认的复制和移动赋值运算符,它们调用 Base 的相应赋值运算符。
3) 从具有匹配标签的不同 tagged 特化进行转换移动赋值。等效于 static_cast<Base&>(*this) = static_cast<Other&&>(that);
4) 从具有匹配标签的不同 tagged 特化进行转换复制赋值。等效于 static_cast<Base&>(*this) = static_cast<const Other&>(that);
5)that 赋值给 Base 子对象。等效于 static_cast<Base&>(*this) = std::forward<U>(that);

[编辑] 返回值

*this.