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.
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.