繁体   English   中英

带有模板参数的函数指针

[英]Pointer to function with template arguments

如何创建此结构而不创建结构?

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

使用using

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

现场例子

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM