std::function::operator bool
Материал из 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. |
| explicit operator bool() const; |
(начиная с C++11) | |
Проверяет, является ли *this хранит вызываемая целевой функции, т.е. не пустое.
Original:
Checks whether *this stores a callable function target, i.e. is not empty.
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.
[править] Возвращаемое значение
true если *this хранит вызываемая целевой функции, false иначе.
Original:
true if *this stores a callable function target, false otherwise.
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.