Namespaces
Variants

cpp/utility/functional/reference wrapper/operator=: Difference between revisions

From cppreference.com
P12bot (talk | contribs)
m Shorten template names. Use {{lc}} where appropriate.
P12bot (talk | contribs)
m Use since= and until= params of {{ddcl}} template.
Line 1: Line 1:
{{cpp/utility/functional/reference_wrapper/title|operator{{=}}}}
{{cpp/utility/functional/reference_wrapper/title|operator{{=}}}}
{{cpp/utility/functional/reference_wrapper/navbar}}
{{cpp/utility/functional/reference_wrapper/navbar}}
{{ddcl | notes={{mark since c++11}} | 1=
{{ddcl | =c++11 | 1=
reference_wrapper& operator=( const reference_wrapper<T>& other );
reference_wrapper& operator=( const reference_wrapper<T>& other );
}}
}}

Revision as of 01:34, 10 July 2013

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
Function objects
Function invocation
(C++17)(C++23)
Identity function object
(C++20)
Transparent operator wrappers
(C++14)
(C++14)
(C++14)
(C++14)  
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)

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++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<T>& other );
(since C++11)

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

Parameters

other - reference wrapper to copy

Return values

*this

Exceptions

noexcept specification:  
noexcept