blob: d45a7b6e82d88c8f5cb6df5f1a1eb0d3e709715d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<!--
file : Documentation/Hetero/index.xhtml
author : Boris Kolpackov <boris@kolpackov.net>
copyright : Copyright (c) 2002-2003 Boris Kolpackov
license : http://kolpackov.net/license.html
-->
<head>
<title>Heterogeneous Container Library</title>
<meta name="author" content="Boris Kolpackov"/>
<meta name="copyright" content="© 2001-2003 Boris Kolpackov"/>
<meta name="keywords" content="c++,heterogeneous,container"/>
<meta name="description" content="Heterogeneous Container Library"/>
<link rel="stylesheet" type="text/css" href="../Style/Default.css"/>
</head>
<body>
<h1>Introduction</h1>
<p>Have you ever wanted to write something like this:</p>
<pre>
vector v;
v.push_back (10);
v.push_back (true);
v.push_back ("hello");
</pre>
<p>Or maybe even something like this:</p>
<pre>
template <typename T>
void print (T const& t)
{
cout << t << endl;
}
for (vector::const_iterator i = v.begin (); i != v.end (); i++)
{
print (*i);
}
</pre>
<p>If so then you may be interested in Heterogeneous Container Library.
It is still in active development but you can take a look for some
examples in Example/Hetero directory.</p>
</body>
</html>
<!-- $Id$ -->
|