template<class _Fp> class _LIBCPP_TYPE_VIS_ONLY function; // undefined std::function<Layer*()> createFunctions[] = { }
[quote=引用 1 楼 ri_aje 的回复:] Layer*() 是函数类型,返回 Layer*,没有参数,名字随便。
<>里面需要一个类型,Layer*()函数返回的不就是一个指针类型么。用这个类型来实例化function模版类。
Layer*() 是函数类型,返回 Layer*,没有参数,名字随便。
33,311
社区成员
41,784
社区内容
加载中
试试用AI创作助手写篇文章吧