Namespaces
Variants

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

From cppreference.com
m merge noexcept
D41D8CD98F (talk | contribs)
p1065 constexpr INVOKE
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 | since=c++11 | 1=
{{
reference_wrapper& operator=( const reference_wrapper<T>& other ) noexcept;
| =c++11 |
=
reference_wrapper& operator=( const reference_wrapper& other ) noexcept;
}}
}}


Copy assignment operator. Drops the current reference and stores a reference to {{c|other.get()}}.
Copy assignment operator. Drops the current reference and stores a reference to {{c|other.get()}}.
Line 15: Line 19:
{{c|*this}}
{{c|*this}}


[[de:cpp/utility/functional/reference wrapper/operator=]]
deesfritjaptruzh
[[es:cpp/utility/functional/reference wrapper/operator=]]
[[fr:cpp/utility/functional/reference wrapper/operator=]]
[[it:cpp/utility/functional/reference wrapper/operator=]]
[[ja:cpp/utility/functional/reference wrapper/operator=]]
[[pt:cpp/utility/functional/reference wrapper/operator=]]
[[ru:cpp/utility/functional/reference wrapper/operator=]]
[[zh:cpp/utility/functional/reference wrapper/operator=]]

Revision as of 01:26, 26 October 2019

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)