Qualifying a method's formal parameter as const
将一个方法的形参设置为常量
You declare a class constant with the const keyword.
用const关键字声明类常量。
Notice that the API_KEY variable is declared as a const.
请注意,API_KEY变量被声明为const。
In the value field for qualifier, enter the value const (as shown in Figure 5 previously).
在qualifier的value处,输入const(如图5所示)。
Embedding const ants in code is obviously foolish.
在代码中嵌入常量显然是愚蠢的。
If you don't need to change it, use const reference.
如果你不需要改变它,使用常量引用。
A static const variable declared and defined in a class.
一个staticconst变量声明和定义在一个类。
The last pair differs only as to whether the parameter is const.
最后一对的区别仅在于是否将形参定义为const。
Your normal habit when passing an argument to a function should be to pass by const reference.
用常量引用给一个函数传递参数,是一种好的习惯。
Your normal habit when passing an argument to a function should be to pass by const reference.
当给函数传递参数时,你要养成的良好习惯是传递常量引用。
This layer has material const ants which govern the stiffness across it and has zero thickness.
该层的材料常数用劲度常数来描述,其层厚为零。
In addition, you can change the value of any non-const variable or the contents of any register.
另外,可以更改任何非常数变量的值或任何寄存器的内容。
A recurrent motif in African American literature is a const ant search for freedom and equality.
美国黑人文学中,追求自由、平等是一个永恒的主题。
Because the -c option was used for gperf invocation, the hash table is defined with the const attribute.
因为使用- c选项进行gperf调用,将使用const属性定义散列表。
A shared_ptrinstance can be "read" (accessed using only const operations)simultaneously by multiple threads.
同一个shared_ptr对象可以被多线程同时读取。
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。
Automatic const-weight packing machine has been widely used in chemical fertilizer, feed and light industry etc.
自动定量包装机广泛应用于化肥、饲料、轻工等行业。
Abstract: Checking and measuring the verticality is very important in the vertical control of high-rise building const ruction.
文摘:垂直度检测在高层建筑施工的竖向控制中十分重要。
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的引用。
This will generate a function signature in the source code with the const qualifier for the selected parameter, once the transformation is executed.
这样,当转换执行的时候,将在源代码中为选定的参数生成带有常量修饰符的函数签名。
The -c option creates the lookup tables declared with the const keyword; the contents of all generated lookup tables then are constant-that is, read-only.
c选项将创建使用const关键字声明的查找表。所有生成的查找表中的内容都是常量—即只读形式。
These versions of exec* are just various calling interfaces for core function execve(): int execve(const char *filename, char *const argv [], char *const envp[]).
exec*的这些版本只是内核函数execve() (int execve(constchar *filename, char *constargv [], char *constenvp[])) 的各种调用接口。
Firstly, allocation coefficient, diffusion coefficient and reversible reaction equilibrium const are determined, and the operation factors affecting these parameters also investigated.
首先,测定包括分配系数、水相传质扩散系数和反应平衡常数等基础参数,并分析了各操作条件对其影响。
This class must have a single public property called Value of the same data type as the Const variables you created for this enumeration in step 2.
此类必须具有一个称为Value的公共属性,与第2步中为此枚举创建的Const变量具有相同的数据类型。
Create a global Const variable for each item in the enumeration with each Const name starting with the enumeration name followed by an underscore (in our case, BookType_xxx).
为枚举中的每项创建一个Const全局变量,各Const的名称都以枚举名称开头,后接下划线(在本例中为BookType_xxx)。
Create a global Const variable for each item in the enumeration with each Const name starting with the enumeration name followed by an underscore (in our case, BookType_xxx).
为枚举中的每项创建一个Const全局变量,各Const的名称都以枚举名称开头,后接下划线(在本例中为BookType_xxx)。
应用推荐