差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 | 后一修订版两侧同时换到之后的修订记录 | ||
blog:cpp:basic_type_alias_and_const [2022/04/17 17:55] – caodan | blog:cpp:basic_type_alias_and_const [2022/04/17 18:00] – caodan | ||
---|---|---|---|
行 31: | 行 31: | ||
typedef void (*FP)(int, const std::string &); | typedef void (*FP)(int, const std::string &); | ||
using FP = void (*)(int, const std::string & | using FP = void (*)(int, const std::string & | ||
+ | ``` | ||
+ | |||
+ | *using 比 typedef 的适用范围广*, | ||
+ | |||
+ | ``` | ||
+ | template < | ||
+ | using Vec = MyVector< | ||
+ | |||
+ | Vec< | ||
``` | ``` | ||