reinterpret_cast<void *>(FPii)\
时间: 2024-01-14 09:55:00 浏览: 112
C++中的类型转换static_cast、dynamic_cast、const_cast和reinterpret_cast总结
reinterpret_cast<void *>(FPii)是将函数指针FPii转换为void指针。reinterpret_cast是C++中的一种类型转换操作符,用于执行底层指针之间的转换。在这种情况下,它将FPii的类型从函数指针转换为void指针,并返回指向FPii的内存地址的void指针。这种类型转换允许我们将函数指针表示为指向任何类型的指针,但需要注意,在使用reinterpret_cast进行类型转换时,需要确保转换是安全和合法的,否则可能会导致未定义的行为。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [C++中的类型转换static_cast、dynamic_cast、const_cast和reinterpret_cast总结](https://download.csdn.net/download/weixin_38629976/12808232)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [C++- 泛型编程之函数模板(详解)](https://blog.csdn.net/qq_36059321/article/details/86621137)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [undefined](undefined)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文