的名字 fptr ,所以我们就有了下面的内容: Return_Type: intClass_Name: FooArgument_List: string declaration of a pointer-to-member 就连脑残都知道可以将声明和初始化结合起来: int (Foo::*fptr) (string) = &Foo::f; 为了通过函数指针来调用成员函数,我们使用成员指针选择操作符(翻译君表示也不知道该怎么翻译,原文是pointer-to-member
type,cppference中提到,scalar type为以下几个之一: • an arithmetic type • an enumeration type • a pointer type • a pointer-to-member