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
若要声明函数指针,指定"函数指针" 类型,例如:
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.
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.