关于类型别名
设置类型的别名的两种方式:-使用 typedeftypedef std::string::size_type testType;testType cursor = 0;使用类型别名using testType = std::string::size_type;testType cursor = 0;两种方式等价,可以根据喜好使用。...
·
设置类型的别名的两种方式:
-使用 typedef
typedef std::string::size_type testType;
testType cursor = 0;
- 使用类型别名
using testType = std::string::size_type;
testType cursor = 0;
两种方式等价,可以根据喜好使用。
更多推荐



所有评论(0)