在这里展示了首个无类函数对象。
The first class-ness of function objects is clearly demonstrated here. Listing 10 shows what happens when I try calling a garbage method on function blah
操纵列表的有两类函数:构造函数和选择函数。
Two types of functions manipulate lists: constructors and selectors.
您也可以在子类中重写规则函数,从子类中调用重写的父类函数。
You can also override regular functions in a subclass and call the overridden parent function from within the subclass.
CwMtx没有内置的随机数生成器,也没有用随机元素填充矩阵的类函数。
CwMtx has no built-in random number generator, and there is no class function that fills a matrix with random elements.
对N类函数的性质进行进一步的研究,得到一些可延托成N类函数的判别条件。
By further studying the property of the functions of class n, the authors obtain some conditions for discriminating the functions which can be extended inward into class n.
框架包括若干类函数,从简单应用程序或工具功能的打包到处理完整任务的复杂脚本。
Frameworks include several types of functions, from very simple wrappers around simple application or tool functions to very complex scripts that handle an integrated task.
注意:当索引表达式被用于关系表达式,或作为某个操作符类函数的参数时,查询优化器将考虑使用函数索引。
Note: the query optimizer considers using a functional index when the index expression is used in a relational expression or as an argument to one of the operator class functions.
推广了留数理论中的对数留数定理,给出了一般性的结论,从而解决了一类函数的留数计算问题。
The traditional logarithmic residue theorem is generalized, so a general conclusion is given to solve the calculating for residue.
如果基类成员与派生类成员接受的实参不同,就没有办法通过基类类型的引用或指针调用派生类函数。
If the base member took different arguments than the derived-class member, there would be no way to call the derived function from a reference or pointer to the base type.
谓词(我在之前的清单2中定义的is - factor方法—请注意一类函数的大量使用),返回匹配的数字。
Predicate (which is the is-factor method I defined earlier in Listing 2 - note the heavy use of first-class functions), returning the Numbers that match.
但是,它是免费的且它的发布受gnuLGPL许可证的保护,所以如果您愿意的话,您有创建这些(生成器和类函数)的自由。
But because it's free and released under the GNU LGPL license, you have the freedom to create these if you'd like.
例如,如果连接的是Oracle数据库,那么名为NVL的实用程序类函数返回nvl;如果连接的是DB2,那么返回COALESCE。
For example, a utility class function called NVL would return NVL if the database connection is with Oracle, and COALESCE if the DB connection is with DB2.
如果源代码文件中有名称空间声明,那么对类、函数和常量的所有引用都使用名称空间语义。
If a source file has a namespace declaration, then all references to classes, functions, and constants use the namespace semantics.
它可以定义类或函数,但不是必须的。
PHP有一个有用的反射API,它允许我们对类、接口、函数和方法执行反向工程。
PHP has a useful reflection API, which allows us to reverse-engineer classes, interfaces, functions, and methods.
保持谦虚指避免在类实现和函数实现中暴露自己。
To be modest is to avoid exposing yourself in your implementations of classes and functions.
这些库包含了一系列的类和函数,可以在编程中使用。
The C++ Standard Library specifies a set of classes and functions that facilitate common programming tasks.
当然,PHP要解决的冲突的名称并不是人名,而是类、函数和常量的名称。
Of course, the names on which PHP resolves collision are not the names of people but rather the names of classes, functions, and constants.
对于这种只有少量类和函数的应用程序,使用即时绑定还是目标绑定没有太大区别。
For this application, with just a small number of classes and functions, it does not make too much difference whether you use just-in-time or targeted binding.
注意,在访问类成员函数的参数时,实际的参数编号从2而不是从1 开始。
Note that when you try to access an argument of a class member function the actual argument count starts from 2 instead of 1.
完整描述、显示类、函数和字段。
您可以在类、函数或命名空间范围中使用Boost静态断言;还可以与模板一起使用它们。
You can use Boost static assertions in a class, function, or namespace scope; you can also use them with templates.
如果已经编写了所需的代码或逻辑,那么您还可以从script库中引用其他类、函数和sub。
You can also reference other classes, functions, and subs from script libraries if the code or logic you require has already been written.
Outline视图显示导入的库、类以及函数。
它对 Python 支持得比较好的是缩排、块缩进/取消缩进、类/函数浏览器(它隐藏于水平滚动条之后)。
It does have good Python awareness in indentation behavior, block indent/dedent, class/function browser (this hidden next to the horizontal scroll bar).
默认情况下,当您创建一个子类时,它的构造函数只调用其父类的构造函数。
By default, when you create a subclass, its constructor merely calls the constructor of its parent class.
每个客户端必须有单独的标识符串,将该标识符串作为参数传送给类构造函数。
Each client has to have a unique identifier string which is passed as an argument to the class constructor.
一种好的开发实践是将尽量多的代码移入可重用的例程、函数、类或组件,而这些例程、函数、类或组件均能划分到库或框架中。
A good development practice is to move as much code as possible into reusable routines, functions, classes, or components, which can be grouped into libraries or frameworks.
如何定义具有数量可变的参数(每个参数的类型可能不同)的模板化类或函数?
How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?
另外要注意,类定义必须出现在模块的最顶层,这意味着它们不能是嵌套的类(在其它类或函数中定义的类)。
Also note that class definitions must appear at the top level of a module, meaning they cannot be nested classes (classes defined inside other classes or functions).
应用推荐