1 使用using定义类的别名
using u8 = uint64_t;
using不光可以用来定义namespace了。
2 auto
int a = 1;
auto b = a;
编译器在编译时自动进行类型判断,这里b也是int类型的变量。
1 使用using定义类的别名
using u8 = uint64_t;
using不光可以用来定义namespace了。
2 auto
int a = 1;
auto b = a;
编译器在编译时自动进行类型判断,这里b也是int类型的变量。
上一篇:Thread join方法的用途
下一篇:java垃圾回收机制
1、什么是C+11C++11标准为C++编程语言的第三个官方标准,正式名叫ISO++语言...
文章转载:http://develo
文章目录1、Template表达式内的空格2、nullptr和std::nullptr_t3、以auto完成类型自
1. 引入nullptr的原因引入nullptr的原因,这个要从NULL说起。对于C和C++程序员来说
最近学习了C++11的新特性,将学习内容整理下来以巩固记忆,C++11的新特性,经支
详解CPP新特性—c++11
返回值 decltype(表达式)[返回值的类型是表达式参数的类型]这个可也用来决
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M