比较函数索引和非函数索引。
DSU惯例是比传递一个比较函数更快,就象在其他配方里讨论的那样。
The DSU idiom is much faster than passing sort a comparison function, as discussed in other recipes.
此警告意味着在应当使用字符串比较函数的位置使用了字符串复制函数。
This warning indicates that a string copy function was used where a string comparison function should have been used.
该函数带有两个参数——第一个参数是要排序的HTML选择列表,第二个参数是比较函数。
This function takes two parameters — the first is the HTML select list to sort, and the second is the comparison function.
这个技巧解释了shell测试和比较函数,演示了如何向 shell添加编程功能。
This tip explains the shell test and comparison functions and shows you how to add programming capability to the shell.
但是,这种策略容易导致出错:如果两个操作使用不同的比较函数,顺序可能会不一致。
However, this strategy would be error - prone: if two operations used different comparison functions, then the ordering would be inconsistent.
百分比值是通过比较函数实例值与分析运行期间所有函数的已用非独占总时间计算而得。
Percentage values are calculated by comparing the value of the function instances to the total elapsed inclusive time of all functions in the profiling run.
到目前为止,要想使用定制的比较函数,标准的做法是定义自己的函数对象,然后适当地定义操作符。
So far, to use custom comparison functions, the standard practice has been to define your own function object and then define the operator appropriately.
调用应用程序提供的算法:C运行时库函数qsort 排序对象数组,但你必须提供比较函数。
To Invoke an Application-Supplied Algorithm The C runtime library function qsort sorts an array of objects, but you must supply the function that compares objects.
CSimpleBinaryTree提供了一个通用的全局比较函数,它可以比较两个长整型的指针。
CSimpleBinaryTree provides a generic global compare function that compares two Pointers of type long.
既然这样,一旦CompareOther写好了,只需要写一个二元谓词将比较函数包装起来就可以了。
Now, if I may continue, once the CompareOther function has been written, the faithful needs only to write a binary predicate to wrap the comparison function.
这在减少冗余性的路上已经跨进了一大步,但仍然不是很抽象,因为它还是会要求用户以命令方式来计算比较函数。
This is a big step forward in reducing verbosity but is still not any more abstract - it still forces the user to calculate the comparison function imperatively.
Guru转过身去,边走边说道:“呃,关键问题是,如果一个类里面有多个域,编写这个类的比较函数时要保持警惕。”
The Guru turned and continued as she walked away, "The, er, key, my apprentice, is to keep your wits about you when writing comparison functions that deal with multiple fields."
在减少代码冗长方面这算是向前迈了很大的一步,但还不算是更加抽象——其依然迫使用户命令式地计算比较函数。
This is a big step forward in reducing verbosity but is still not any more abstract - it still forces the user to calculate the comparison function imperatively.
但我又不想用调用比较函数的开销,因此只能用宏来实现了。由于快速排序是目前最快的通用排序算法,因此当前选用快速排序算法。
But I also do not want to call the comparison function of the overhead, it can only be used to achieve a macro.
Apply对象的目的是对从袋子(由attributedesignator返回)中选择的值应用比较函数,将它与条件中规定的值进行比较。
The objective of the apply object is to apply the compare function on the value picked from the bag (returned by AttributeDesignator) and compare it to the value specified in the condition.
出现这些修改之后,一些Python支持者认为不允许对不同类型的对象进行不等比较是件好事,只有定义了定制的比较函数之后,才能进行这种比较。
After the change, some Pythonistas argued that a good behavior would be to disallow all inequality comparisons between objects of distinct types, at least unless we define custom comparison functions.
排序函数比较两个项返回三个值中的一个。
A collation function compares two items and returns one of three values.
要进行比较,需要选择一个预置的函数。
To do this comparison, you choose one of the pre-configured functions.
表2总结和比较了带注释的XML模式和用于分解的xmltable函数。
TABLE 2 summarizes and compares the usage of annotated XML schemas with the XMLTABLE function for shredding.
如清单5所示,该函数只是比较两个给定的字符串,如果它们相等则返回1。
As you could see in Listing 5, the function just compares the two given strings and returns 1 (one) if they are equal.
把服务ID传递给搜索函数来将其与传递给方法的提要ID相比较。
Pass this to a function called search to compare it against the feed ID passed into the method.
这听起来好像有一大堆的条件,但还是比较简单的:通过使用列可以找到索引,通过使用函数可以知道空间谓词。
This sounds like a lot of conditions, but so far it is straightforward: using the column, the index can be found and the spatial predicate is known using the function.
但有时直接从XSLT调用一个已有的实例函数比较方便。
However, sometimes it's convenient to invoke a preexisting instance function directly from XSLT.
该函数比较简单,没必要使用状态机。
This function is relatively trivial, and does not require using a state machine.
然后,当链接器设置对函数的引用时,就会将当前函数的TOC 与所调用的函数的 TOC 进行比较。
Then, when the linker is setting up references to functions, it compares the TOC of the current function to the TOC of the function it's calling.
为了避免出现麻烦,不要将字符串与内置的Boolean函数true和false进行比较。
To avoid trouble, do not compare a string to the built-in Boolean functions true and false .
在XPath表达式中,比较字符串和Boolean函数会得到非预期的结果。
In an XPath expression, comparing a string and a Boolean function can yield unexpected results.
第1部分介绍了regex的概念和可用于比较文本与模式和提取匹配的php函数。
Part 1 introduces the notion of the regex and the PHP functions available to compare text to patterns and extract matches.
第1部分介绍了regex的概念和可用于比较文本与模式和提取匹配的php函数。
Part 1 introduces the notion of the regex and the PHP functions available to compare text to patterns and extract matches.
应用推荐