std::reference_wrapper<T>::get, std::reference_wrapper<T>::operator T&
From cppreference.com
< cpp | utility | functional | reference wrapper
C++
Utilities library
Type support (basic types, RTTI, type traits) | |||||||||||||||||||||
Dynamic memory management | |||||||||||||||||||||
Error handling | |||||||||||||||||||||
Program utilities | |||||||||||||||||||||
Variadic functions | |||||||||||||||||||||
Library feature-test macros | |||||||||||||||||||||
Date and time | |||||||||||||||||||||
Function objects | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++14) | |||||||||||||||||||||
Relational operators (deprecated in C++20) | |||||||||||||||||||||
Comparisons (C++20) | |||||||||||||||||||||
Common vocabulary types | |||||||||||||||||||||
| |||||||||||||||||||||
Swap, forward and move | |||||||||||||||||||||
(C++14) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
Elementary string conversions | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
Type operations | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) |
Function objects
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Operator wrappers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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) | |
T& get() const noexcept; |
(since C++11) | |
Returns the stored reference.
Parameters
(none)
Return value
The stored reference.
See also
calls the stored function (public member function) |