Namespaces
Variants

std::reference_wrapper<T>:: operator=

From cppreference.net
Utilities library
Function objects
Function invocation
(C++17) (C++23)
Identity function object
(C++20)
Old binders and adaptors
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
( until C++17* ) ( until C++17* )
( until C++17* ) ( until C++17* )

( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
reference_wrapper & operator = ( const reference_wrapper & other ) noexcept ;
(自 C++11 起)
(自 C++20 起为 constexpr)

复制赋值运算符。丢弃当前引用并存储对 other. get ( ) 的引用。

参数

其他 - 用于复制的引用包装器

返回值

* this