|
nngn
|
Unique type for a function or member function pointer. More...
#include <delegate.h>


Public Member Functions | |
| template<typename ... Ts> requires (invocable<Ts...>) | |
| operator() (Ts &&...ts) | |
| Calls F. | |
Private Types | |
| using | base = std::integral_constant<value_type, F> |
Private Attributes | |
| using | value_type |
Static Private Attributes | |
| template<typename ... Ts> | |
| static constexpr bool | invocable = std::is_invocable_v<value_type, Ts...> |
Unique type for a function or member function pointer.
The pointer is fully preserved and not converted to a generic function pointer, so that the call through operator()() can be fully optimized. Being a unique type for each pointer value, it can be used where callable types are required (e.g. for nngn::delegate).
| F | A function or member function pointer. |
|
private |
|
inline |
Calls F.
std::invoke
|
staticconstexprprivate |
|
private |