gpt4 book ai didi

c++ - 为类的成员创建别名

转载 作者:行者123 更新时间:2023-11-30 03:21:09 25 4
gpt4 key购买 nike

<分区>

假设有一个类 test 有一个成员 void test::foo(),我们知道我们可以通过 typedef test 为这个类创建一个别名alt(或 using 命令。)

C++ 是否支持以下意义上的别名类成员:typedef test::foo() alt::fooatl();,即 alt.fooalt()调用应该对应于对 test.foo() 的调用?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com