- 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.
推薦閱讀
- 電腦常見問題與故障排除
- SDL Game Development
- 施耐德SoMachine控制器應用及編程指南
- Deep Learning with PyTorch
- Getting Started with Qt 5
- 嵌入式系統設計教程
- Large Scale Machine Learning with Python
- R Deep Learning Essentials
- 單片機開發與典型工程項目實例詳解
- LPC1100系列處理器原理及應用
- Blender Game Engine:Beginner's Guide
- Building Machine Learning Systems with Python
- Angular 6 by Example
- Blender for Video Production Quick Start Guide
- 計算機應用基礎案例教程(Windows 7+Office 2010)