Are function pointers function objects in C++?

前端 未结 2 1878
醉话见心
醉话见心 2021-02-08 22:41

The C++ standard defines function objects as:

A function object type is an object type that can be the type of the postfix-expression in a function call

2条回答
  •  情书的邮戳
    2021-02-08 23:17

    Yes, they are. The term "object" in C++ standard does not mean "object" in the OOP sense. An int is an object.

提交回复
热议问题