如此丑陋变态的C/C++的函数指针语法.~你看得懂吗?
const float *(*const*)(int)
这个函数指针类弄中间括号内那一大坨是什么东西呀..怎么const前后都有一个*呀.是干嘛用的啊?
上帝看得懂吗?????
555555555~~
反正我是看不懂~~~
出处:
今天在看今年比较流行的C++书<c++ common knowledge>
Item 54. Traits
Specializing ContainerTraits with any pointer type, whether it be int * or const float *(*const*)(int), will result in instantiation of this partial specialization, unless there is an even more specialized version of ContainerTraits available.
可以为其它pointer类型定制容器特性,无论指针是int*,还是const float *(*const*)(int)...晕~~~