首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏算法之美

    c++系列之二 指向成员函数的指针(烧脑)

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

    3.8K20发布于 2019-05-05
  • 来自专栏技术随笔心得

    我们通常说的POD到底是什么?

    type,cppference中提到,scalar type为以下几个之一: • an arithmetic type • an enumeration type • a pointer type • a pointer-to-member

    1.4K42编辑于 2023-06-13
领券