File tree 5 files changed +5
-3
lines changed
5 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -980,6 +980,7 @@ <h2 id="bind">bind 为函数对象绑定参数</h2>
980
980
}
981
981
982
982
int main() {
983
+ auto hello2 = std::bind(hello, 2, std::placeholders::_1);
983
984
fmt::println("main 调用 hello2(3) 结果:{}", hello2(3));
984
985
fmt::println("main 调用 hello2(4) 结果:{}", hello2(4));
985
986
fmt::println("main 调用 hello2(5) 结果:{}", hello2(5));
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ <h2 id="_1">前言</h2>
194
194
< blockquote >
195
195
< p > < img src ="./img/bulb.png " height ="30px " width ="auto " style ="margin: 0; border: none "/> 本书还在持续更新中……要追番的话,可以在 < a href ="https://github.com/parallel101/cppguidebook "> GitHub</ a > 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一峰电子邮件,提醒你小彭老师更新了。</ p >
196
196
</ blockquote >
197
- < p > 更新时间:2024年07月23日 12:55:22 (UTC+08:00)</ p >
197
+ < p > 更新时间:2024年07月24日 23:15:55 (UTC+08:00)</ p >
198
198
< h2 id ="_2 "> 格式约定</ h2 >
199
199
< blockquote >
200
200
< p > < img src ="./img/bulb.png " height ="30px " width ="auto " style ="margin: 0; border: none "/> 用这种颜色字体书写的内容是温馨提示</ p >
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ <h2 id="index-_1">前言</h2>
239
239
< blockquote >
240
240
< p > < img src ="../img/bulb.png " height ="30px " width ="auto " style ="margin: 0; border: none "/> 本书还在持续更新中……要追番的话,可以在 < a href ="https://github.com/parallel101/cppguidebook "> GitHub</ a > 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一峰电子邮件,提醒你小彭老师更新了。</ p >
241
241
</ blockquote >
242
- < p > 更新时间:2024年07月23日 12:55:22 (UTC+08:00)</ p >
242
+ < p > 更新时间:2024年07月24日 23:15:55 (UTC+08:00)</ p >
243
243
< h2 id ="index-_2 "> 格式约定</ h2 >
244
244
< blockquote >
245
245
< p > < img src ="../img/bulb.png " height ="30px " width ="auto " style ="margin: 0; border: none "/> 用这种颜色字体书写的内容是温馨提示</ p >
@@ -1544,6 +1544,7 @@ <h2 id="functional-bind">bind 为函数对象绑定参数</h2>
1544
1544
}
1545
1545
1546
1546
int main() {
1547
+ auto hello2 = std::bind(hello, 2, std::placeholders::_1);
1547
1548
fmt::println("main 调用 hello2(3) 结果:{}", hello2(3));
1548
1549
fmt::println("main 调用 hello2(4) 结果:{}", hello2(4));
1549
1550
fmt::println("main 调用 hello2(5) 结果:{}", hello2(5));
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments