Scroll to navigation

std::reference_wrapper::operator=(3) C++ Standard Libary std::reference_wrapper::operator=(3)

NAME

std::reference_wrapper::operator= - std::reference_wrapper::operator=

Synopsis

reference_wrapper& operator=( const reference_wrapper& other ) (since C++11) noexcept; (constexpr since C++20)

Copy assignment operator. Drops the current reference and stores a reference to other.get().

Parameters

other - reference wrapper to copy

Return value

*this

2026.11.10 http://cppreference.com