C ++函数属于“可调用类型”吗

时间:2016-07-01 11:53:14

标签: function c++11 types definition callable

C ++ 11标准说:

20.8.1 Definitions [func.def]
1 The following definitions apply to this Clause:
2 A call signature is the name of a return type followed by a parenthesized comma-separated list of zero or
more argument types.
3 A callable type is a function object type (20.8) or a pointer to member.
4 A callable object is an object of a callable type.

所以我的理解是,函数是函数类型的一个实例,因此函数不是“可调用类型”。但绝对可以调用函数。

这个定义对我来说有点奇怪。我哪里弄错了?

0 个答案:

没有答案