Namensräume
Varianten

std::function::target

Aus cppreference.com
< cpp‎ | utility‎ | functional‎ | function

 
 
 
 
 
template< class T >
T* target();
(1)(seit C++11)
template< class T >
const T* target() const;
(2)(seit C++11)
Gibt einen Zeiger auf die gespeicherte Funktion Ziel .
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.

Inhaltsverzeichnis

[Bearbeiten] Parameter

(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Rückgabewert

Ein Zeiger auf die gespeicherte Funktion, wenn target_type() == typeid(T), sonst ein Null-Zeiger .
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.

[Bearbeiten] Ausnahmen

noexcept specification:  
noexcept
  (seit C++11)

[Bearbeiten] Beispiel

[Bearbeiten] Siehe auch

erhält die typeid der gespeicherten Ziel eines 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.

(öffentliche Elementfunktion) [edit]