inline内联函数
时间: 2023-08-24 16:09:08 浏览: 204
内联函数是一种用于实现的关键字,而不是用于声明的关键字。它能够告诉编译器将函数的代码直接插入调用处,以减少函数调用的开销。在C++中,我们可以使用关键字"inline"来定义一个内联函数。内联函数一般在函数定义时使用,而不是在函数声明时使用。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [inline:内联函数](https://blog.csdn.net/weixin_41565755/article/details/100057767)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [内联函数-C中关键字inline用法解析](https://blog.csdn.net/cpongo3/article/details/93996094)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [inline内联函数](https://blog.csdn.net/niumengting/article/details/98470484)[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^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文