Skip to content

Commit 473bd48

Browse files
committed
deploy: 5d08d6b
1 parent d86143b commit 473bd48

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ <h2 id="_1">前言</h2>
292292
<blockquote>
293293
<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>
294294
</blockquote>
295-
<p>更新时间:2024年09月18日 12:29:27 (UTC+08:00)</p>
295+
<p>更新时间:2024年09月19日 10:55:53 (UTC+08:00)</p>
296296
<p><a href="https://parallel101.github.io/cppguidebook">在 GitHub Pages 浏览本书</a> | <a href="https://142857.red/book">在小彭老师自己维护的镜像上浏览本书</a></p>
297297
<h2 id="_2">格式约定</h2>
298298
<blockquote>

print_page/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ <h2 id="index-_1">前言</h2>
421421
<blockquote>
422422
<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>
423423
</blockquote>
424-
<p>更新时间:2024年09月18日 12:29:27 (UTC+08:00)</p>
424+
<p>更新时间:2024年09月19日 10:55:53 (UTC+08:00)</p>
425425
<p><a href="https://parallel101.github.io/cppguidebook">在 GitHub Pages 浏览本书</a> | <a href="https://142857.red/book">在小彭老师自己维护的镜像上浏览本书</a></p>
426426
<h2 id="index-_2">格式约定</h2>
427427
<blockquote>
@@ -7904,7 +7904,7 @@ <h3 id="stl_map-typename">typename 修饰</h3>
79047904
typename map&lt;int, string&gt;::value_type; // 可以省略,但你加了也没关系
79057905
</code></pre>
79067906
<blockquote>
7907-
<p><img src="../img/question.png" height="30px" width="auto" style="margin: 0; border: none"/> 含有 T 的类型表达式称为 dependant-type,根本原因是因为在不知道具体是类型表达式还是值表达式的情况下,编译器无法区分模板的 <code>&lt;</code> 和小于符号 <code>&lt;</code>,以及类型的指针 <code>*</code> 和数值乘法 <code>*</code>。默认会认为是小于符号和数值乘法,加上 <code>typename</code> 后明确前面这一串是类型表达式,才知道这是模板的 <code>&lt;</code> 和指针的 <code>*</code>。</p>
7907+
<p><img src="../img/question.png" height="30px" width="auto" style="margin: 0; border: none"/> 含有 T 的类型表达式称为 dependent-type,根本原因是因为在不知道具体是类型表达式还是值表达式的情况下,编译器无法区分模板的 <code>&lt;</code> 和小于符号 <code>&lt;</code>,以及类型的指针 <code>*</code> 和数值乘法 <code>*</code>。默认会认为是小于符号和数值乘法,加上 <code>typename</code> 后明确前面这一串是类型表达式,才知道这是模板的 <code>&lt;</code> 和指针的 <code>*</code>。</p>
79087908
</blockquote>
79097909
<h3 id="stl_map-decltype">decltype 大法好</h3>
79107910
<p>也有更直观的获取 STL 容器元素类型的方法:</p>

search/search_index.json

+1-1
Large diffs are not rendered by default.

sitemap.xml.gz

0 Bytes
Binary file not shown.

stl_map/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ <h3 id="typename">typename 修饰</h3>
19451945
typename map&lt;int, string&gt;::value_type; // 可以省略,但你加了也没关系
19461946
</code></pre>
19471947
<blockquote>
1948-
<p><img src="../img/question.png" height="30px" width="auto" style="margin: 0; border: none"/> 含有 T 的类型表达式称为 dependant-type,根本原因是因为在不知道具体是类型表达式还是值表达式的情况下,编译器无法区分模板的 <code>&lt;</code> 和小于符号 <code>&lt;</code>,以及类型的指针 <code>*</code> 和数值乘法 <code>*</code>。默认会认为是小于符号和数值乘法,加上 <code>typename</code> 后明确前面这一串是类型表达式,才知道这是模板的 <code>&lt;</code> 和指针的 <code>*</code></p>
1948+
<p><img src="../img/question.png" height="30px" width="auto" style="margin: 0; border: none"/> 含有 T 的类型表达式称为 dependent-type,根本原因是因为在不知道具体是类型表达式还是值表达式的情况下,编译器无法区分模板的 <code>&lt;</code> 和小于符号 <code>&lt;</code>,以及类型的指针 <code>*</code> 和数值乘法 <code>*</code>。默认会认为是小于符号和数值乘法,加上 <code>typename</code> 后明确前面这一串是类型表达式,才知道这是模板的 <code>&lt;</code> 和指针的 <code>*</code></p>
19491949
</blockquote>
19501950
<h3 id="decltype">decltype 大法好</h3>
19511951
<p>也有更直观的获取 STL 容器元素类型的方法:</p>

0 commit comments

Comments
 (0)