std::reference_wrapper<T>::get, std::reference_wrapper<T>::operator T&
来自cppreference.com
< cpp | utility | functional | reference
wrapper
工具库
函数对象
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
旧绑定器与适配器 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
std::reference_wrapper
成员函数 | ||||
reference_wrapper::getreference_wrapper::operator
T&
|
||||
推导指引(C++17) |
operator
T&
()
const
noexcept;
|
(C++11
起) (C++20 前) |
|
constexpr
operator T&
()
const
noexcept;
|
(C++20 起) | |
T&
get()
const
noexcept;
|
(C++11
起) (C++20 前) |
|
constexpr
T&
get()
const
noexcept;
|
(C++20 起) | |
返回存储的引用。
参数
(无)
返回值
存储的引用。
参阅
调用其所存储的函数 (公开成员函数) |