摘要:
Rvalue references (右值引用) and Move Semantics Rvalue references are a new reference type introduced in C++0x that help solve the problem of unnecessary 阅读全文
posted @ 2020-11-19 15:31
Codroc
阅读(124)
评论(0)
推荐(0)
摘要:
range-based for statement for(decl : coll){ // decl:声明 coll:容器 statement } for(int i : {2, 3, 4, 5, 6}){ cout << i << endl; } vector<double> vec; ··· 阅读全文
posted @ 2020-11-19 11:50
Codroc
阅读(95)
评论(0)
推荐(0)
摘要:
Automatic Type Deduction with auto With C++11, you can declare a variable or an object without specifying its type by using auto. For example: auto i 阅读全文
posted @ 2020-11-19 11:29
Codroc
阅读(83)
评论(0)
推荐(0)

浙公网安备 33010602011771号