Commit 79fcb18 1 parent 60cf6bc commit 79fcb18 Copy full SHA for 79fcb18
File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -246,9 +246,9 @@ <h2 id="_1">前言</h2>
246
246
< p > 如果你在阅读过程中遇到任何问题,可以在 < a href ="https://github.com/parallel101/cppguidebook/issues "> GitHub Issues</ a > 中提出,小彭老师会尽力解答。</ p >
247
247
< p > 也可以在 < a href ="https://space.bilibili.com/263032155 "> B 站</ a > 发私信给小彭老师哦。</ p >
248
248
< blockquote >
249
- < 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 >
249
+ < 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 >
250
250
</ blockquote >
251
- < p > 更新时间:2024年08月14日 11:49:15 (UTC+08:00)</ p >
251
+ < p > 更新时间:2024年08月15日 01:31:59 (UTC+08:00)</ p >
252
252
< h2 id ="_2 "> 格式约定</ h2 >
253
253
< blockquote >
254
254
< p > < img src ="./img/bulb.png " height ="30px " width ="auto " style ="margin: 0; border: none "/> 用这种颜色字体书写的内容是温馨提示</ p >
@@ -351,7 +351,7 @@ <h2 id="_4">举个例子</h2>
351
351
void try_call_foo(T &) {
352
352
}
353
353
</ code > </ pre >
354
- < p > 如果回到 C++98,那又要罪加一等!< code > enable_if</ code > 和 是 C++11 引入的 < code > <type_traits></ code > 头文件的帮手类 ,在 C++98 中,我们需要自己实现 < code > enable_if</ code > …… < code > declval</ code > 也是 C++11 引入的 < code > <utility></ code > 头文件中的帮手函数……假设你自己好不容易实现出来了 < code > enable_if</ code > 和 < code > declval</ code > ,还没完:因为 constexpr 在 C++98 中也不存在了!你无法定义 value 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。</ p >
354
+ < p > 如果回到 C++98,那又要罪加一等!< code > enable_if</ code > 和 < code > declval </ code > 是 C++11 引入的 < code > <type_traits></ code > 头文件的帮手类和帮手函数 ,在 C++98 中,我们需要自己实现 < code > enable_if</ code > …… < code > declval</ code > 也是 C++11 引入的 < code > <utility></ code > 头文件中的帮手函数……假设你自己好不容易实现出来了 < code > enable_if</ code > 和 < code > declval</ code > ,还没完:因为 constexpr 在 C++98 中也不存在了!你无法定义 value 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。</ p >
355
355
< pre > < code class ="language-cpp "> template <class T, class = void>
356
356
struct has_foo {
357
357
enum { value = 0 };
Original file line number Diff line number Diff line change @@ -343,9 +343,9 @@ <h2 id="index-_1">前言</h2>
343
343
<p>如果你在阅读过程中遇到任何问题,可以在 <a href="https://github.com/parallel101/cppguidebook/issues">GitHub Issues</a> 中提出,小彭老师会尽力解答。</p>
344
344
<p>也可以在 <a href="https://space.bilibili.com/263032155">B 站</a> 发私信给小彭老师哦。</p>
345
345
<blockquote>
346
- <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>
346
+ <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>
347
347
</blockquote>
348
- <p>更新时间:2024年08月14日 11:49:15 (UTC+08:00)</p>
348
+ <p>更新时间:2024年08月15日 01:31:59 (UTC+08:00)</p>
349
349
<h2 id="index-_2">格式约定</h2>
350
350
<blockquote>
351
351
<p><img src="../img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/> 用这种颜色字体书写的内容是温馨提示</p>
@@ -448,7 +448,7 @@ <h2 id="index-_4">举个例子</h2>
448
448
void try_call_foo(T &) {
449
449
}
450
450
</code></pre>
451
- <p>如果回到 C++98,那又要罪加一等!<code>enable_if</code> 和 是 C++11 引入的 <code><type_traits></code> 头文件的帮手类 ,在 C++98 中,我们需要自己实现 <code>enable_if</code>…… <code>declval</code> 也是 C++11 引入的 <code><utility></code> 头文件中的帮手函数……假设你自己好不容易实现出来了 <code>enable_if</code> 和 <code>declval</code>,还没完:因为 constexpr 在 C++98 中也不存在了!你无法定义 value 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。</p>
451
+ <p>如果回到 C++98,那又要罪加一等!<code>enable_if</code> 和 <code>declval</code> 是 C++11 引入的 <code><type_traits></code> 头文件的帮手类和帮手函数 ,在 C++98 中,我们需要自己实现 <code>enable_if</code>…… <code>declval</code> 也是 C++11 引入的 <code><utility></code> 头文件中的帮手函数……假设你自己好不容易实现出来了 <code>enable_if</code> 和 <code>declval</code>,还没完:因为 constexpr 在 C++98 中也不存在了!你无法定义 value 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。</p>
452
452
<pre><code class="language-cpp">template <class T, class = void>
453
453
struct has_foo {
454
454
enum { value = 0 };
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments