缺省函数选择器是一个代码片段,与以下所示类似。
The default function selector is a code fragment, similar to what follows. Notice that the Exception handling is removed for better code readability.
我们可以使用缺省函数选择器进行数据绑定调用,或实现自定义函数选择器。
We can use the default Function Selector for data binding invocation or implement a custom Function Selector.
具有缺省可视性的成员函数对于同一个软件包中所有其它类实际上是公有的,而对于该软件包外部的类,它是私有的。
A member function with default visibility is effectively public to all other classes within the same package, but private to classes external to the package.
导出将使用缺省JMS函数选择器类。
The export will use the default JMS function selector class.
不过,在Bash中设置函数的缺省参数始终有点麻烦。
Setting default parameters for functions in Bash are always a bit verbose, though.
SOP的另一限制是使用toString函数将变量序列化,因此缺省情况下它不能用于复合变量。
Another limitation of SOP is that it USES the toString function to serialize the variables and therefore cannot be used for complex variables by default.
如果返回值没有指定,那么函数的缺省返回值是int类型的。
If a return value is not otherwise specified, the default return value for a function is int.
ebuild脚本中,在执行e2 fsprogs - 1.18 . ebuild文件之前定义缺省user_compile函数。
In the ebuild script, the default user_compile function is defined before the e2fsprogs-1.18.ebuild file is sourced.
为使这个方法更加简单,将对变量的访问封装在第二个函数中,该函数使用配置键名及一个缺省值作为参数,如下所示。
To make this method a little easier, I wrap the access to the variable in a second function that takes a configuration key name and a default value, as shown below.
在这个示例中,检查实际上是多余的,因为缺省套接字实现的构造函数也执行相同的检查。
The check is actually redundant in this example, because the constructor for the default socket implementation performs the same check.
为了处理长函数,我们通过垂直省略,缺省隐藏较大的语句块。
To handle long functions, we collapse large blocks by default, using vertical elision.
这种思想的常见扩展是在类的构造函数中预先用缺省值填充该集合。
A common extension of this idea is to prefill the collection with default values in the constructor of the class.
哈希函数可以非常复杂,但现在已经有类库提供了很好的缺省支持。
Hash functions can be complex and sophisticated, but modern libraries have good defaults.
最后他将发现,他写的小应用程序代码缺少缺省的构造函数。
Eventually she will figure it out: Her code is missing the default constructor for the applet she is writing.
但是,对于大多数包来说,可以省略.ebuild文件中的任何定制user_compile函数,而使用缺省的user_compile函数。
But, for most packages, we can omit any custom user_compile function in the.ebuild file, and the default user_compile function is used instead.
实际上,发出'infolocals '命令时,gd b会打印出当前帧中的局部变量,缺省情况下,这个帧中的函数就是被中断的函数(0号帧)。
When you issue the 'info locals' command GDB actually prints out variables local to the current frame, which by default is where the interrupted function is (frame 0).
可以看到,context函数所显示的信息远比您通常使用缺省gdb hook_stop函数所看到的信息更详细。
As you can see, the information displayed by the context function is far more detailed than you normally see with the default GDB hook_stop vector.
在. NET中,序列化类也需要缺省构造函数。
In.net, a default constructor is also needed for a serialization class.
因此请总是确认你已经为你的类型重载了以上函数,不要以任何方式依赖于缺省实现。
Therefore always make sure that you overload the functions for your types and do not rely on the defaults in any way.
这个函数调用缺省的窗口过程,提供了对应用程序没有处理的任何窗口消息的缺省处理。
Calls the default window procedure, which provides default processing for any window message that an application does not process.
这个函数初始化武器0 为缺省的武器。
许多实践者使用缺省损失函数(如,均方误差)训练和挑选最好的模型。
Many practitioners train and pick the best model using the default loss function (e. g., squared error).
可缺省构造的对象只需具有一个缺省构造函数。
DefaultConstructible objects only need to have a default constructor.
可缺省构造的对象只需具有一个缺省构造函数。
DefaultConstructible objects only need to have a default constructor.
应用推荐