专有名称翻译

cast

投递投影的意思,在IT中标识转换,比如强制转换,隐式转换,比如关键字static_cast

parameter

参数,在C++中表示形参,就是定义函数时的那个变量

argument

论证,变数,在C++中表示实参,就是调用函数是传递的变量

designate

指定,指派,在IT中可以表示代表

Reference collapsing

引用塌陷(叠加),实际上就是合并,因为不允许出现引用的引用,如果因为typedef定义出现了引用的引用,那么就合并为引用

typedef int&  lref;
typedef int&& rref;
int n;
lref&  r1 = n; // type of r1 is int&
lref&& r2 = n; // type of r2 is int&
rref&  r3 = n; // type of r3 is int&
rref&& r4 = 1; // type of r4 is int&&
rref& r5 = 1;  // 报错,这里会当作左值引用,需要家const修饰

individual

原意是个人的,可以表示逐个的,每一个的

posted @ 2021-03-23 14:11  秋来叶黄  阅读(74)  评论(0编辑  收藏  举报