const
常考释义
If you get this warning, examine your code to see if it depends on binding rvalues to non-const references.
如果接到这项警告,请检查您的程式码,查看是否依系结右值至非常数参考而产生。
bool remove(const path& p): This routine attempts to remove the file or directory being referred to by the path p.
boolremove(constpath&p):此例程将尝试删除路径p所引用的文件或目录。
Binding a reference to an R-Value is allowed as long as the reference is bound to a const type.
将引用与右值绑定像引用静态类型一样也是被允许的。
An rvalue cannot be bound to a non-const reference.
值无法系结至非常数参考。
A Const statement's scope is the same as that of a variable declared in the same location.
一条Const语句的范围与在相同位置上声明的变量范围相同。
In a similar manner, a liter al integer const ant can be specified as being unsigned by following its value with either U or u.
类似地我们可以在整型文字常量的后面加上“u”或“U”,将其指定为一个无符号数。
Within a struct declaration, fields cannot be initialized unless they are declared as const or static.
在结构声明中,除非字段被声明为const或static,否则无法初始化。
bool exists(const path&): This function checks for the existence of a file.
boolexists(constpath&):此函数检查文件的扩展名。
You can fix this bug by editing the gregor. c file's line 79 and removing the string const at the start of that line.
修复这个bug的方法是编辑gregor.c文件第79行,并删除该行开始部分的字符串const。
A const field can only be initialized at the declaration of the field.
const字段只能在该字段的声明中初始化。
Avoid using const on read-only variables. For that, use the readonly directive.
只读的变量不要定义为const,使用readonly关键字。
You can declare tuples with the const qualifier, in which case the get call to access a particular element returns a reference to const.
可以使用const限定符来声明元组,在这种情况下,用于访问特定元素的get调用将返回对const的引用。
Your normal habit when passing an argument to a function should be to pass by const reference .
用常量引用给一个函数传递参数,是一种好的习惯。
cend Returns a const iterator that addresses the location succeeding the last element in a string.
返回最后一个位置的常量iterator地址。
bool is_directory(const path&): This function checks whether a path corresponds to a directory.
boolis_directory(constpath&):此函数检查路径是否与目录对应。
The second declaration is the Const statement, which declares the constant limit, specifying the Integer data type and a value of 33.
第二个声明是Const语句,该语句声明常数limit,并且指定Integer数据类型和值33。
This warning indicates that the Access property specified on a const parameter implies that it can be written to.
此警告意味着对常数参数指定的Access属性暗示它可被写入。
The hydrogeologic conditions, the groundwater in const ruction pit and the countermeasures in Wuhan area are introduced.
本文介绍了武汉地区的水文地质概况,基坑工程中的地下水问题及其处理对策。
In the Value field for qualifier, enter the value const (as shown in Figure 5 previously).
在qualifier的Value处,输入const(如图5所示)。
S. Const. amend. X. Nonetheless, the powers of the federal government are extensive.
(美国宪法修正案)但是,联邦政府的权力是广泛的。
以上图片仅供学习交流使用,版权归原作者所有,如有侵权,请与我方联系