From 562d0a7eeca259deefb272d06101d97928b64bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=92=E6=95=85=E9=87=8C?= <3326284481@qq.com> Date: Sat, 27 Jan 2024 12:56:04 +0800 Subject: [PATCH 1/2] Fix errors in inline function definitions --- cppguide.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cppguide.html b/cppguide.html index 487529ee2..9c61fef15 100644 --- a/cppguide.html +++ b/cppguide.html @@ -355,9 +355,7 @@
You can declare functions in a way that allows the compiler to expand -them inline rather than calling them through the usual -function call mechanism.
+Declaring a function inline suggests that the compiler replace every call to that function with code in the function definition, rather than calling them through the usual function call mechanism.
Inlining a function can generate more efficient object From 073057028282bc91d77adb75fafe031f9f63b357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=92=E6=95=85=E9=87=8C?= <3326284481@qq.com> Date: Sat, 27 Jan 2024 12:57:38 +0800 Subject: [PATCH 2/2] Change the length of a single line --- cppguide.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cppguide.html b/cppguide.html index 9c61fef15..e782e9176 100644 --- a/cppguide.html +++ b/cppguide.html @@ -355,7 +355,10 @@
Declaring a function inline suggests that the compiler replace every call to that function with code in the function definition, rather than calling them through the usual function call mechanism.
+Declaring a function inline suggests that the compiler +replace every call to that function with code in the +function definition, rather than calling them through the +usual function call mechanism.
Inlining a function can generate more efficient object