Skip to content

Commit

Permalink
添加了部分体例。
Browse files Browse the repository at this point in the history
  • Loading branch information
wuye9036 committed Dec 24, 2015
1 parent e0a7eb8 commit c038910
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,28 @@ C++编译器众多,且对模板的支持可能存在细微差别。如果没

此外,部分复杂实例我们还在文中提供了在线的编译器预览以方便大家阅读和测试。在线编译器参见: http://gcc.godbolt.org/

###0.5 意见、建议、喷、补遗、写作计划
###0.5 体例

####0.5.1 示例代码

```C++
void SampleCode() {
// 这是一段示例代码
}
```

####0.5.2 引用

引用自C++标准:

> 1.1.2/1 这是一段引用或翻译自标准的文字
引用自其他图书:

> 《书名》
> 这是一段引用或翻译自其他图书的文字
###0.6 意见、建议、喷、补遗、写作计划

* 需增加:
* 模板的使用动机。
Expand Down Expand Up @@ -1872,6 +1893,8 @@ template <typename... Ts, typename U> class Y<Ts..., U> {}; // (4) error!
####3.1.3 模板的默认实参
###3.2 后悔药:SFINAE
###3.3 实战单元:获得类型的属性——类型萃取(Type Traits)
Expand Down Expand Up @@ -1909,6 +1932,7 @@ Any Spirit Hana
###8.2 模板的症结:易于实现,难于完美
alexandrescu 关于 min max 的讨论:《再谈Min和Max》
std::experimental::any / boost.any 对于 reference 的处理
[1]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf
Expand Down

0 comments on commit c038910

Please sign in to comment.