相关疑难解决方法(0)

我们可以像命名空间一样对类名进行别名吗?

我们可以像命名空间一样对类名进行别名吗?

例如:

namespace longname{ }
namespace ln = longname;// namespace aliasing

class LONGNAME {};
class LN = LONGNAME; // how to do class name aliasing, if allowed?
Run Code Online (Sandbox Code Playgroud)

c++

15
推荐指数
3
解决办法
1万
查看次数

标签 统计

c++ ×1