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.
[править] Исключения
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| получает typeid сохраненных цель std::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. (public функция-член) | |