AddDevice is a pointer to a function within the driver that creates device objects; this function is rather a big deal, and I'll discuss it at length in the section" The AddDevice Routine" later in this chapter.
To declare a pointer to a function, specify the "pointer to a function" type, for example
添加支持函数指针来简化事件模式的安排。若要声明一个函数指针,请指定"函数指针"类型,例如:
Hence, a pointer to a function is a functor an object that can be used in place of a function name in function call syntax. On the other hand, because a reference is not an object, a reference to a function is not a functor.
Pointers to functions can be stored and passed as parameters. You cannot get a pointer to a non-static class method.
函数指针可以存储和作为参数传递。您不能获得非静态类函数的指针。
A bound pointer-to-member must be a function call (missing argument list?)
绑定指向成员的指针必须是函数调用(缺少参数列表?)
each parameter is a pointer to a user variable that is assigned a value by the function
每个参数都是一个指向用户变量的指针,由此函数向该用户变量分配值
a pointer to a bound function may only be used to call the function
指向绑定函数的指针只能用于调用函数
A prvalue of type pointer to non-throwing member function can be converted to a prvalue pointer to potentially-throwing member function.
指向不抛出函数的指针类型的纯右值 能转换成指向潜在抛出函数的指针纯右值。
the function allocates a vector of void pointers, each pointing to an allocated buffer that holds a single element in the list
此函数分配空指针向量,每个指针都指向一个已分配的缓冲区,其中保留列表中的单个元素
the pointer returned by this function is a pointer to a static area, overwritten by each subsequent call
此函数返回的指针是静态区域的指针,该静态区域被每个后续的调用所覆盖
Contenuto potenzialmente sensibile o inappropriato
La funzione degli esempi è unicamente quella di aiutarti a tradurre la parola o l'espressione cercata inserendola in un contesto. Gli esempi non sono stati scelti e validati manualmente da noi e potrebbero contenere termini o contenuti non appropriati. Ti preghiamo di segnalarci gli esempi da correggere e quelli da non mostrare più. Le traduzioni potenzialmente sensibili, inappropriate o colloquiali sono in genere evidenziate in rosso o in arancione.