std::reference_wrapper<T>::get, std::reference_wrapper<T>::operator T&
From cppreference.com
< cpp | utility | functional | reference wrapper
C++
Utilities library
|
|
Function objects
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Old binders and adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
std::reference_wrapper
Member functions | ||||
reference_wrapper::getreference_wrapper::operator T& | ||||
Deduction guides(C++17) |
operator T& () const noexcept; |
(since C++11) (until C++20) |
|
constexpr operator T& () const noexcept; |
(since C++20) | |
T& get() const noexcept; |
(since C++11) (until C++20) |
|
constexpr T& get() const noexcept; |
(since C++20) | |
Returns the stored reference.
Parameters
(none)
Return value
The stored reference.
See also
calls the stored function (public member function) |