std::function::target
来自cppreference.com
< cpp | utility | functional | function
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| template< class T > T* target(); |
(1) | (C++11 起) |
| template< class T > const T* target() const; |
(2) | (C++11 起) |
返回一个指针,指向存储功能目标.
Original:
Returns a pointer to the stored function target.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 返回值
存储功能如果
target_type() == typeid(T),否则为空指针的指针.Original:
A pointer to the stored function if
target_type() == typeid(T), otherwise a null pointer.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 例外
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| 获得所存储的目标的typeidstd::function Original: obtains the typeid of the stored target of a std::function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |