Reputation: 27
How do I create this, without creating a structure?
template <class T>
typedef bool (* FunctionPointer)(T*, T*);
Upvotes: 1
Views: 77
Reputation: 171177
Using using
:
template <class T>
using FunctionPointer = bool (*)(T*, T*);
Upvotes: 4