C和c++的原因从未采用嵌套函数是因为为了使捕获的工作,你需要额外的信息,其结果是一个指针函数变得更加复杂。
The reason C and C++ never adopted nested functions is because in order to make capture work, you need additional information, with the result that a pointer to function becomes more complex.
然后,您可以将库装入到您的地址空间中并使用函数指针调用方法。
You could then load the library into your address space and call the methods using function Pointers.
这构造器用来通过一个目标对象和一个函数指针形成一个委托。
The constructor is used to form a delegate over a target object and a function pointer.
它返回一个函数指针,可以像任何其他引用值一样使用它们。
It returns a pointer to the function, which can then be used like any other reference value.
全局变量不会被分配在寄存器上,修改全局变量需要通过指针或者调用函数的方式间接进行。
Global variables are never allocated to registers. Global variables can be changed by assigning them indirectly using a pointer, or by a function call.
重写随后执行的函数指针或异常处理程序。
Overwriting a function pointer or exception handler that is subsequently executed.
返回指向静态数据的指针可能会导致函数不可重入。
Returning a pointer to static data may cause a function to be non-reentrant.
清单2提供了一个使用指针参数的稍微复杂的函数。
Listing 2 provides a slightly more complicated function that USES pointer arguments.
其对象指针作为函数的第一个参数被传递。
The object pointer is passed as the first argument to the function.
在返回DB2之前填充函数指针结构。
Populate the function pointer structure before returning to DB2.
在可识别键的内核扩展中,所有间接的函数指针调用都将执行特殊的、常驻内核的粘合代码,该代码用于执行上述的自动amr操作。
All indirect function pointer calls in a key-aware kernel extension go through special kernel-resident glue code that performs the automatic AMR manipulations described above.
即便我们可以采用不同的测量方式,例如代码行数、类的数量、函数指针的数量、系统漏洞的数量,等等,软件还是缺乏一种定义良好的原子结构。
Software also lacks a well defined atomic unit of work — even though we can apply various measures, such as lines-of-code, number of classes, number of function points, number of bugs, etc.
第二个域是这个函数使用的toc指针。
通过使用引用,可以告诉函数指向信息的指针。
By using a reference, you tell the function to point to the information.
该特性比函数指针更强大,因为它允许内部类实例保持对创建它的环境的引用。
This feature is richer than function Pointers because it allows the inner class instance to retain a reference to the environment in which it was created.
如果一个函数正在执行,那么堆栈指针就会指向整个堆栈的顶部,这也是该函数活动记录的顶部。
If a function is executing, then the stack pointer is pointing to the top of the whole stack, which is also the top of that function's activation record.
这样将保护程序代码避免堆栈、缓冲区和函数指针溢出,而且全都不需重新编译。
This protects against stack, buffer, and function pointer overflows, all without recompilation.
当完成该函数之后,使用返回指针回到原来的位置并继续程序。
After the function has been completed, the return pointer is used to go back to the original location and the program can continue.
使用 BOOST_TEST_CASE宏创建的单元测试以函数指针作为输入参数。
The unit tests that are created using the BOOST_TEST_CASE macros accept function pointers as their input arguments.
指向被映射函数入口点的指针。
在第2部分中,我将介绍如何重写函数指针并介绍组件组装和一些有趣的shell、网络、套接字代码示例。
In Part 2, I'll show how to overwrite a function pointer and cover assembly components and some juicy shell, network, socket code samples.
一些最重要的新功能可能包括异常处理、扩展函数、函数指针和/或lambda表达式。
Some of the most significant possible new features include exception handling, extension functions, function pointers, and/or lambda expressions.
不返回指向静态数据的指针;所有数据都由函数的调用者提供。
Does not return a pointer to static data; all data is provided by the caller of the function?
我们现在知道了这是一个函数指针类型,它可以引用任何有一个int类型参数并且返回一个string类型的方法。
We now know that this represents a function pointer type that can refer to any method taking a single int argument and returning a string.
步骤3:在返回DB2之前填充函数指针结构。
Step 3: Populate the function pointer structure before returning to db2.
首先,Vee -Table指针用于访问虚函数,而对数据成员的访问直接使用编译时偏移量实现。
First, the Vee-Table pointer is used to access virtual functions, and data members are accessed directly using compile time offsets.
fetch函数将结果集指针指向下一行。
The fetch function sets the result set pointer to the next row.
与之相反的是,real_fchmod是一个由setup_ wrappers填充的函数指针。
By contrast, real_fchmod is a function pointer, which is populated by setup_wrappers .
与之相反的是,real_fchmod是一个由setup_ wrappers填充的函数指针。
By contrast, real_fchmod is a function pointer, which is populated by setup_wrappers .
应用推荐