- Hands-On Embedded Programming with C++17
- Maya Posch
- 84字
- 2021-08-20 10:20:47
Function inlining
The inline keyword in C++ is a hint to the compiler to let it know that we would like each call to a function whose name is preceded by this keyword to result in that function's implementation instead of being copied to the location of the call, thus skipping the overhead of a function call.
This is a compile-time optimization, which only adds the size of the function implementation to the compiler output, once for each distinct call to the inline function.
推薦閱讀
- 用“芯”探核:龍芯派開發實戰
- 新型電腦主板關鍵電路維修圖冊
- 數字道路技術架構與建設指南
- INSTANT Wijmo Widgets How-to
- 計算機組裝與維修技術
- VCD、DVD原理與維修
- 超大流量分布式系統架構解決方案:人人都是架構師2.0
- 筆記本電腦維修實踐教程
- 數字媒體專業英語(第2版)
- Java Deep Learning Cookbook
- 單片機原理與技能訓練
- 微服務實戰(Dubbox +Spring Boot+Docker)
- 微服務架構基礎(Spring Boot+Spring Cloud+Docker)
- The Reinforcement Learning Workshop
- 超炫的35個Arduino制作項目