mirror of
https://github.com/huihut/interview.git
synced 2024-03-22 13:10:48 +08:00
【@shangjiaxuan 提供】inline 表述修改
https://github.com/huihut/interview/issues/27
This commit is contained in:
parent
0ce1bec623
commit
f85134ac43
|
@ -107,7 +107,7 @@ int* const function7(); // 返回一个指向变量的常指针,使用:i
|
|||
* 相当于把内联函数里面的内容写在调用内联函数处;
|
||||
* 相当于不用执行进入函数的步骤,直接执行函数体;
|
||||
* 相当于宏,却比宏多了类型检查,真正具有函数特性;
|
||||
* 不能包含循环、递归、switch 等复杂操作;
|
||||
* 编译器一般不内联包含循环、递归、switch 等复杂操作的内联函数;
|
||||
* 在类声明中定义的函数,除了虚函数的其他函数都会自动隐式地当成内联函数。
|
||||
|
||||
#### 使用
|
||||
|
@ -3427,7 +3427,7 @@ int main( void )
|
|||
|
||||
包括勘误的 Issue、PR,排序按照贡献时间。
|
||||
|
||||
[tamarous](https://github.com/tamarous)、[i0Ek3](https://github.com/i0Ek3)、[sniper00](https://github.com/sniper00)、[blackhorse001](https://github.com/blackhorse001)、[houbaron](https://github.com/houbaron)、[Qouan](https://github.com/Qouan)、[2329408386](https://github.com/2329408386)、[FlyingfishMORE](https://github.com/FlyingfishMORE)、[Ematrix163](https://github.com/Ematrix163)、[ReturnZero23](https://github.com/ReturnZero23)、[kelvinkuo](https://github.com/kelvinkuo)、[henryace](https://github.com/henryace)、[xinghun](https://github.com/xinghun)、[maokelong](https://github.com/maokelong)、[easyYao](https://github.com/easyYao)、[FengZiYjun](https://github.com/FengZiYjun)
|
||||
[tamarous](https://github.com/tamarous)、[i0Ek3](https://github.com/i0Ek3)、[sniper00](https://github.com/sniper00)、[blackhorse001](https://github.com/blackhorse001)、[houbaron](https://github.com/houbaron)、[Qouan](https://github.com/Qouan)、[2329408386](https://github.com/2329408386)、[FlyingfishMORE](https://github.com/FlyingfishMORE)、[Ematrix163](https://github.com/Ematrix163)、[ReturnZero23](https://github.com/ReturnZero23)、[kelvinkuo](https://github.com/kelvinkuo)、[henryace](https://github.com/henryace)、[xinghun](https://github.com/xinghun)、[maokelong](https://github.com/maokelong)、[easyYao](https://github.com/easyYao)、[FengZiYjun](https://github.com/FengZiYjun)、[shangjiaxuan](https://github.com/shangjiaxuan)
|
||||
|
||||
</details>
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ int* const function7(); // 返回一个指向变量的常指针,使用:i
|
|||
* 相当于把内联函数里面的内容写在调用内联函数处;
|
||||
* 相当于不用执行进入函数的步骤,直接执行函数体;
|
||||
* 相当于宏,却比宏多了类型检查,真正具有函数特性;
|
||||
* 不能包含循环、递归、switch 等复杂操作;
|
||||
* 编译器一般不内联包含循环、递归、switch 等复杂操作的内联函数;
|
||||
* 在类声明中定义的函数,除了虚函数的其他函数都会自动隐式地当成内联函数。
|
||||
|
||||
#### 使用
|
||||
|
@ -3410,7 +3410,7 @@ int main( void )
|
|||
|
||||
包括勘误的 Issue、PR,排序按照贡献时间。
|
||||
|
||||
[tamarous](https://github.com/tamarous)、[i0Ek3](https://github.com/i0Ek3)、[sniper00](https://github.com/sniper00)、[blackhorse001](https://github.com/blackhorse001)、[houbaron](https://github.com/houbaron)、[Qouan](https://github.com/Qouan)、[2329408386](https://github.com/2329408386)、[FlyingfishMORE](https://github.com/FlyingfishMORE)、[Ematrix163](https://github.com/Ematrix163)、[ReturnZero23](https://github.com/ReturnZero23)、[kelvinkuo](https://github.com/kelvinkuo)、[henryace](https://github.com/henryace)、[xinghun](https://github.com/xinghun)、[maokelong](https://github.com/maokelong)、[easyYao](https://github.com/easyYao)、[FengZiYjun](https://github.com/FengZiYjun)
|
||||
[tamarous](https://github.com/tamarous)、[i0Ek3](https://github.com/i0Ek3)、[sniper00](https://github.com/sniper00)、[blackhorse001](https://github.com/blackhorse001)、[houbaron](https://github.com/houbaron)、[Qouan](https://github.com/Qouan)、[2329408386](https://github.com/2329408386)、[FlyingfishMORE](https://github.com/FlyingfishMORE)、[Ematrix163](https://github.com/Ematrix163)、[ReturnZero23](https://github.com/ReturnZero23)、[kelvinkuo](https://github.com/kelvinkuo)、[henryace](https://github.com/henryace)、[xinghun](https://github.com/xinghun)、[maokelong](https://github.com/maokelong)、[easyYao](https://github.com/easyYao)、[FengZiYjun](https://github.com/FengZiYjun)、[shangjiaxuan](https://github.com/shangjiaxuan)
|
||||
|
||||
## 📜 License
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user