From f85134ac439b96b034f055de24801ae1f25f0d9f Mon Sep 17 00:00:00 2001 From: huihut Date: Wed, 27 Feb 2019 21:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90@shangjiaxuan=20=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E3=80=91inline=20=E8=A1=A8=E8=BF=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/huihut/interview/issues/27 --- README.md | 4 ++-- README_Details.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f6467d1..ca5f3e7 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/README_Details.md b/README_Details.md index d83369e..9524ec1 100644 --- a/README_Details.md +++ b/README_Details.md @@ -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