1 | <!-- Copyright David Abrahams 2006. Distributed under the Boost --> |
---|
2 | <!-- Software License, Version 1.0. (See accompanying --> |
---|
3 | <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) --> |
---|
4 | <html> |
---|
5 | <head> |
---|
6 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
7 | <link rel="stylesheet" type="text/css" href=../../../../boost.css> |
---|
8 | <title>Boost.Python - Holder Concept</title> |
---|
9 | </head> |
---|
10 | <body link="#0000ff" vlink="#800080"> |
---|
11 | <table border="0" cellpadding="7" cellspacing="0" width="100%" summary= |
---|
12 | "header"> |
---|
13 | <tr> |
---|
14 | <td valign="top" width="300"> |
---|
15 | <h3><a href="../../../../index.htm"><img height="86" width="277" alt="C++ Boost" src="../../../../boost.png" border="0"></a></h3> |
---|
16 | </td> |
---|
17 | <td valign="top"> |
---|
18 | <h1 align="center"><a href="../index.html">Boost.Python</a></h1> |
---|
19 | <h2 align="center">HolderGenerator Concept</h2> |
---|
20 | </td> |
---|
21 | </tr> |
---|
22 | </table> |
---|
23 | <hr> |
---|
24 | <dl class="page-index"> |
---|
25 | <dt><a href="#introduction">Introduction</a></dt> |
---|
26 | <dt><a href="#concept-requirements">Concept Requirements</a></dt> |
---|
27 | <dl class="page-index"> |
---|
28 | <dt><a href="#HolderGenerator-concept">HolderGenerator Concept</a></dt> |
---|
29 | </dl> |
---|
30 | </dl> |
---|
31 | |
---|
32 | <h2><a name="introduction"></a>Introduction</h2> |
---|
33 | |
---|
34 | <p>A HolderGenerator is a unary metafunction class which returns types |
---|
35 | suitable for holding instances of its argument in a wrapped C++ class |
---|
36 | instance. |
---|
37 | |
---|
38 | <h2><a name="concept-requirements"></a>Concept Requirements</h2> |
---|
39 | <h3><a name="HolderGenerator-concept"></a>HolderGenerator Concept</h3> |
---|
40 | |
---|
41 | <p>In the table below, <code><b>G</b></code> denotes an type which |
---|
42 | models HolderGenerator, and <code><b>X</b></code> denotes a class |
---|
43 | type. |
---|
44 | |
---|
45 | <table summary="Holder expressions" border="1" cellpadding="5"> |
---|
46 | |
---|
47 | <tr> |
---|
48 | <td><b>Expression</b></td> |
---|
49 | <td><b>Requirements</b></td> |
---|
50 | </tr> |
---|
51 | |
---|
52 | <tr> |
---|
53 | <td valign="top"><code>G::apply<X>::type</code></td> |
---|
54 | <td>A concrete subclass of <a |
---|
55 | href="instance_holder.html#instance_holder-spec">instance_holder</a> |
---|
56 | which can hold objects of type <code>X</code>. |
---|
57 | </tr> |
---|
58 | </table> |
---|
59 | |
---|
60 | <hr> |
---|
61 | <p>Revised |
---|
62 | <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan --> |
---|
63 | 13 November, 2002 |
---|
64 | <!--webbot bot="Timestamp" endspan i-checksum="39359" --> |
---|
65 | </p> |
---|
66 | <p><i>© Copyright <a href="../../../../people/dave_abrahams.htm">Dave |
---|
67 | Abrahams</a> 2002. </i> |
---|
68 | |
---|
69 | <p>Permission to copy, use, modify, sell |
---|
70 | and distribute this software is granted provided this copyright notice appears |
---|
71 | in all copies. This software is provided "as is" without express or implied |
---|
72 | warranty, and with no claim as to its suitability for any purpose. |
---|
73 | </body> |
---|
74 | </html> |
---|