sequences.sgml

来自「boost库提供标准的C++ API 配合dev c++使用,功能更加强大」· SGML 代码 · 共 31 行

SGML
31
字号
<!-- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 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 + =
减小字号Ctrl + -
显示快捷键?