Added libs/mpl
[SVN r15384]
This commit is contained in:
1 parent
6ec072c403
commit
01d61922bc
238 files changed
+15885
No files matched your search
@@ -0,0 +1,30 @@
|
||||
<!-- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 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>
|
||||
Reference in new issue
Block a user