user3403717
user3403717

Reputation: 27

Pointer to function with template arguments

How do I create this, without creating a structure?

template <class T>
typedef bool (* FunctionPointer)(T*, T*);

Upvotes: 1

Views: 77

Answers (1)

Using using:

template <class T>
using FunctionPointer = bool (*)(T*, T*);

Live example

Upvotes: 4

Related Questions