📄 sequences.sgml
字号:
<!-- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| section -->
<section id="sequences">
<title>Working with type sequences</>
<para>
If we were to design a generative container library, our first attempt could be something like this:
</>
<programlisting>
<![CDATA[
namespace ctl { // Container Template Library
template<
typename T
, typename Features
>
class container
{
// ...
};
} // namespace ctl
]]>
</>
<para>
Here, <literal>container</> template is a single generative interface to all the , and we would like to pass to a possibly numerous features of a container as a single type.
</>
</section>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -