public member function
<functional>
std::reference_wrapper::gettype& get() const noexcept;
Access element
Returns a reference to the referred element.type is a member type describing the referred type (it is an alias of the class template parameter, T).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// reference_wrapper::get
#include <iostream> // std::cout
#include <functional> // std::reference_wrapper
int main () {
int i;
std::reference_wrapper<int> foo (i);
foo.get() = 10;
std::cout << foo.get() << '\n';
return 0;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4