Skip to content

Commit

Permalink
Site updated: 2020-07-19 23:20:29
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinkle-hzt committed Jul 19, 2020
1 parent c560019 commit c610b62
Show file tree
Hide file tree
Showing 9 changed files with 1,269 additions and 31 deletions.
561 changes: 561 additions & 0 deletions 2020/07/08/Segment-Tree/index.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion 2020/07/09/cpp-template-1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@

<p class="note note-info">

本文最后更新于:2020年7月17日 下午
本文最后更新于:2020年7月19日 晚上

</p>

Expand All @@ -238,6 +238,7 @@
<p>这是本系列<strong>第一篇</strong>文章,以下是本系列文章目录。</p>
<p><a href="#1-函数模板">1. 函数模板(本文)</a></p>
<p><a href="https://vinkle.top/2020/07/17/cpp-template-2/#2-%E7%B1%BB%E6%A8%A1%E6%9D%BF" target="_blank" rel="noopener">2. 类模板 </a></p>
<p><a href>3. 非类型模板参数(正在编写)</a></p>
<h1 id="1-函数模板"><a href="#1-函数模板" class="headerlink" title="1. 函数模板"></a>1. 函数模板</h1><p>本章介绍了函数模板。函数模板是被参数化的函数,因此他们代表了一组行为相似的函数(a family of functions)。</p>
<h2 id="1-1-初识函数模板"><a href="#1-1-初识函数模板" class="headerlink" title="1.1. 初识函数模板"></a>1.1. 初识函数模板</h2><p>函数模板提供了适用于不同类型的函数行为。也就是说,函数模板代表了一组行为相似的函数。函数模板看起来几乎就跟普通函数一样,除了某些信息没有被确定以外。我们通过下面一个简单的例子来说明这一问题。</p>
<h3 id="1-1-1-定义模板"><a href="#1-1-1-定义模板" class="headerlink" title="1.1.1 定义模板"></a>1.1.1 定义模板</h3><p>一下是一个函数模板,它返回两数中的最大值</p>
Expand Down
4 changes: 2 additions & 2 deletions 2020/07/13/Dijkstra/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ <h2 id="实现及优化"><a href="#实现及优化" class="headerlink" title="
<div class="post-meta">
<i class="iconfont icon-tags"></i>

<a class="hover-with-bg" href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>

<a class="hover-with-bg" href="/tags/%E7%AE%97%E6%B3%95/">算法</a>

<a class="hover-with-bg" href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>

</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions 2020/07/15/union-find/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ <h4 id="合并-1"><a href="#合并-1" class="headerlink" title="合并"></a>合
<div class="post-meta">
<i class="iconfont icon-tags"></i>

<a class="hover-with-bg" href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>

<a class="hover-with-bg" href="/tags/%E7%AE%97%E6%B3%95/">算法</a>

<a class="hover-with-bg" href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>

</div>

</div>
Expand Down
3 changes: 2 additions & 1 deletion 2020/07/17/cpp-template-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@

<p class="note note-info">

本文最后更新于:2020年7月17日 晚上
本文最后更新于:2020年7月19日 晚上

</p>

Expand All @@ -238,6 +238,7 @@
<p><strong>不是</strong>本系列第一篇文章,推荐阅读完前面的文章再看本文,以下是本系列文章目录。</p>
<p><a href="https://vinkle.top/2020/07/09/cpp-template-1/#1-%E5%87%BD%E6%95%B0%E6%A8%A1%E6%9D%BF" target="_blank" rel="noopener">1. 函数模板</a></p>
<p><a href="#2-类模板">2. 类模板 (本文)</a></p>
<p><a href>3. 非类型模板参数(正在编写)</a></p>
<h1 id="2-类模板"><a href="#2-类模板" class="headerlink" title="2. 类模板"></a>2. 类模板</h1><p>跟函数类似,类也可以被实例化成一个或者多个类型。这个特性的典型例子就是可以用于管理特性类型元素的<strong>容器类(container classes)</strong>。通过使用类模板,你可以实现适用于多个模板的容器类,在本章中,我们将以<strong>栈(stack)</strong>为示例介绍类模板的使用。</p>
<h2 id="2-1-Stack-类模板的实现"><a href="#2-1-Stack-类模板的实现" class="headerlink" title="2.1. Stack 类模板的实现"></a>2.1. Stack 类模板的实现</h2><p>我们可以像函数模板一样声明和定义 <code>Stack&lt;&gt;</code></p>
<pre><code class="hljs c++"><span class="hljs-comment">//stack1.hpp</span>
Expand Down
675 changes: 675 additions & 0 deletions 2020/07/19/cpp-template-3/index.html

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
<div class="category row">
<a
class="category-item list-group-item category-item-action col-10 col-md-11"
id="heading-ckcq80thw00046ovpaxjad022" role="tab" data-toggle="collapse" href="#collapse-ckcq80thw00046ovpaxjad022"
id="heading-ckct88djd0007bkvp7yhpcggh" role="tab" data-toggle="collapse" href="#collapse-ckct88djd0007bkvp7yhpcggh"
aria-expanded="true"
>
C++
Expand All @@ -200,8 +200,8 @@
<div class="category-collapse">


<div id="collapse-ckcq80thw00046ovpaxjad022" class="collapse in show" role="tabpanel"
aria-labelledby="heading-ckcq80thw00046ovpaxjad022">
<div id="collapse-ckct88djd0007bkvp7yhpcggh" class="collapse in show" role="tabpanel"
aria-labelledby="heading-ckct88djd0007bkvp7yhpcggh">



Expand All @@ -210,7 +210,7 @@
<div class="category-sub row">
<a
class="category-subitem collapsed list-group-item category-item-action col-10 col-md-11"
id="heading-ckcq80thx00096ovp09eg226i" role="tab" data-toggle="collapse" href="#collapse-ckcq80thx00096ovp09eg226i"
id="heading-ckct88djn000rbkvp9zum6dev" role="tab" data-toggle="collapse" href="#collapse-ckct88djn000rbkvp9zum6dev"
aria-expanded="false"
>
Template
Expand All @@ -223,8 +223,8 @@
<div class="category-collapse">


<div id="collapse-ckcq80thx00096ovp09eg226i" class="collapse in" role="tabpanel"
aria-labelledby="heading-ckcq80thx00096ovp09eg226i">
<div id="collapse-ckct88djn000rbkvp9zum6dev" class="collapse in" role="tabpanel"
aria-labelledby="heading-ckct88djn000rbkvp9zum6dev">



Expand Down Expand Up @@ -253,7 +253,7 @@
<div class="category-sub row">
<a
class="category-subitem collapsed list-group-item category-item-action col-10 col-md-11"
id="heading-ckcq80tk900186ovp51ws5vzp" role="tab" data-toggle="collapse" href="#collapse-ckcq80tk900186ovp51ws5vzp"
id="heading-ckct88djs0017bkvpa99acacg" role="tab" data-toggle="collapse" href="#collapse-ckct88djs0017bkvpa99acacg"
aria-expanded="false"
>
杂项
Expand All @@ -266,8 +266,8 @@
<div class="category-collapse">


<div id="collapse-ckcq80tk900186ovp51ws5vzp" class="collapse in" role="tabpanel"
aria-labelledby="heading-ckcq80tk900186ovp51ws5vzp">
<div id="collapse-ckct88djs0017bkvpa99acacg" class="collapse in" role="tabpanel"
aria-labelledby="heading-ckct88djs0017bkvpa99acacg">



Expand Down Expand Up @@ -295,7 +295,7 @@
<div class="category row">
<a
class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
id="heading-ckcq80thu00026ovphrzr6yyg" role="tab" data-toggle="collapse" href="#collapse-ckcq80thu00026ovphrzr6yyg"
id="heading-ckct88dj80002bkvp6n9wfsjh" role="tab" data-toggle="collapse" href="#collapse-ckct88dj80002bkvp6n9wfsjh"
aria-expanded="false"
>
CSAPP
Expand All @@ -308,8 +308,8 @@
<div class="category-collapse">


<div id="collapse-ckcq80thu00026ovphrzr6yyg" class="collapse in" role="tabpanel"
aria-labelledby="heading-ckcq80thu00026ovphrzr6yyg">
<div id="collapse-ckct88dj80002bkvp6n9wfsjh" class="collapse in" role="tabpanel"
aria-labelledby="heading-ckct88dj80002bkvp6n9wfsjh">



Expand Down Expand Up @@ -338,7 +338,7 @@
<div class="category row">
<a
class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
id="heading-ckcq80tiq000l6ovpaas42ngb" role="tab" data-toggle="collapse" href="#collapse-ckcq80tiq000l6ovpaas42ngb"
id="heading-ckct88djj000hbkvphb2l58l0" role="tab" data-toggle="collapse" href="#collapse-ckct88djj000hbkvphb2l58l0"
aria-expanded="false"
>
算法
Expand All @@ -351,8 +351,8 @@
<div class="category-collapse">


<div id="collapse-ckcq80tiq000l6ovpaas42ngb" class="collapse in" role="tabpanel"
aria-labelledby="heading-ckcq80tiq000l6ovpaas42ngb">
<div id="collapse-ckct88djj000hbkvphb2l58l0" class="collapse in" role="tabpanel"
aria-labelledby="heading-ckct88djj000hbkvphb2l58l0">



Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,10 @@
<div class="post-meta">
<i class="iconfont icon-tags"></i>

<a href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>

<a href="/tags/%E7%AE%97%E6%B3%95/">算法</a>

<a href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>

</div>

</div>
Expand Down Expand Up @@ -312,10 +312,10 @@
<div class="post-meta">
<i class="iconfont icon-tags"></i>

<a href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>

<a href="/tags/%E7%AE%97%E6%B3%95/">算法</a>

<a href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>

</div>

</div>
Expand Down
12 changes: 6 additions & 6 deletions local-search.xml

Large diffs are not rendered by default.

0 comments on commit c610b62

Please sign in to comment.