std::reference_wrapper::operator()
来自cppreference.com
< cpp | utility | functional | reference wrapper
![]() |
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
template< class... ArgTypes > typename std::result_of<T&(ArgTypes&&...)>::type |
(C++11 起) | |
调用可调用对象,参考的存储。此功能仅适用于存储的参考点到
Callable
对象.原文:
Calls the callable object, reference to which is stored. This function is available only if the stored reference points to a
Callable
object.目录 |
[编辑] 参数
args | - | 参数传递给被调用的函数
原文: arguments to pass to the called function |
[编辑] 返回值
被调用的函数的返回值.
原文:
The return value of the called function.
[编辑] 例外
(无)
[编辑] 另请参阅
访问所存储的参考 (公共成员函数) |