Spec-Zone.ru › C++

std::reference_wrapper<T>::operator=

reference_wrapper& operator=( const reference_wrapper& other ) noexcept;
(с C++11)
(до C++20)
constexpr reference_wrapper& operator=( const reference_wrapper& other ) noexcept;
(с C++20)

Оператор присваивания копированием. Отказывается от текущей ссылки и сохраняет ссылку на other.get().

Параметры

other - ссылка для копирования

Возвращаемое значение

*this

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/utility/functional/reference_wrapper/operator%3D

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API