| 1 | <html> |
|---|
| 2 | <head> |
|---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
|---|
| 4 | <title> |
|---|
| 5 | BoostBook element namespace</title> |
|---|
| 6 | <link rel="stylesheet" href="../../boostbook.css" type="text/css"> |
|---|
| 7 | <meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> |
|---|
| 8 | <link rel="start" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> |
|---|
| 9 | <link rel="up" href="../../reference.html" title="Reference"> |
|---|
| 10 | <link rel="prev" href="constructor.html" title=" |
|---|
| 11 | BoostBook element constructor"> |
|---|
| 12 | <link rel="next" href="if-fails.html" title=" |
|---|
| 13 | BoostBook element if-fails"> |
|---|
| 14 | </head> |
|---|
| 15 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
|---|
| 16 | <table cellpadding="2" width="100%"> |
|---|
| 17 | <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> |
|---|
| 18 | <td align="center"><a href="../../../../index.htm">Home</a></td> |
|---|
| 19 | <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> |
|---|
| 20 | <td align="center"><a href="../../../../people/people.htm">People</a></td> |
|---|
| 21 | <td align="center"><a href="../../../../more/faq.htm">FAQ</a></td> |
|---|
| 22 | <td align="center"><a href="../../../../more/index.htm">More</a></td> |
|---|
| 23 | </table> |
|---|
| 24 | <hr> |
|---|
| 25 | <div class="spirit-nav"> |
|---|
| 26 | <a accesskey="p" href="constructor.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../reference.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="if-fails.html"><img src="../../images/next.png" alt="Next"></a> |
|---|
| 27 | </div> |
|---|
| 28 | <div class="refentry" lang="en"> |
|---|
| 29 | <a name="boostbook.dtd.namespace"></a><div class="titlepage"></div> |
|---|
| 30 | <div class="refnamediv"> |
|---|
| 31 | <h2><span class="refentrytitle"> |
|---|
| 32 | BoostBook element <code class="sgmltag-element">namespace</code></span></h2> |
|---|
| 33 | <p>namespace — Declares a namespace</p> |
|---|
| 34 | </div> |
|---|
| 35 | <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> |
|---|
| 36 | <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv">namespace ::= |
|---|
| 37 | (<a href="class.html" title=" |
|---|
| 38 | BoostBook element class">class</a>| <a href="class-specialization.html" title=" |
|---|
| 39 | BoostBook element class-specialization">class-specialization</a>| <a href="struct.html" title=" |
|---|
| 40 | BoostBook element struct">struct</a>| <a href="struct-specialization.html" title=" |
|---|
| 41 | BoostBook element struct-specialization">struct-specialization</a>| <a href="union.html" title=" |
|---|
| 42 | BoostBook element union">union</a>| <a href="union-specialization.html" title=" |
|---|
| 43 | BoostBook element union-specialization">union-specialization</a>| <a href="typedef.html" title=" |
|---|
| 44 | BoostBook element typedef">typedef</a>| <a href="enum.html" title=" |
|---|
| 45 | BoostBook element enum">enum</a>| <a href="free-function-group.html" title=" |
|---|
| 46 | BoostBook element free-function-group">free-function-group</a>| <a href="function.html" title=" |
|---|
| 47 | BoostBook element function">function</a>| <a href="overloaded-function.html" title=" |
|---|
| 48 | BoostBook element overloaded-function">overloaded-function</a>| <a href="namespace.html" title=" |
|---|
| 49 | BoostBook element namespace">namespace</a>)* |
|---|
| 50 | </div> |
|---|
| 51 | <div class="refsection" lang="en"> |
|---|
| 52 | <a name="id2061498"></a><h2>Description</h2> |
|---|
| 53 | <p>BoostBook namespaces are declared via the <namespace> |
|---|
| 54 | element. As in C++, namespaces can be nested and contain other C++ |
|---|
| 55 | constructs, such as classes or functions. The <code class="computeroutput">name</code> |
|---|
| 56 | attribute of a <namespace> element gives the namespace name |
|---|
| 57 | (e.g., "boost"). The <a href="../../any.html" title="Chapter 1. Boost.Any">Any</a> library is |
|---|
| 58 | defined entirely within namespace boost by:</p> |
|---|
| 59 | |
|---|
| 60 | <pre class="programlisting"><library-reference> |
|---|
| 61 | <header name="boost/any.hpp"> |
|---|
| 62 | <namespace name="boost"> |
|---|
| 63 | <!-- C++ constructs in the boost namespace --> |
|---|
| 64 | </namespace> |
|---|
| 65 | </header> |
|---|
| 66 | </library-reference></pre> |
|---|
| 67 | </div> |
|---|
| 68 | <div class="refsection" lang="en"> |
|---|
| 69 | <a name="id2061543"></a> |
|---|
| 70 | <h2>Attributes</h2> |
|---|
| 71 | <div class="informaltable"><table class="table"> |
|---|
| 72 | <colgroup> |
|---|
| 73 | <col> |
|---|
| 74 | <col> |
|---|
| 75 | <col> |
|---|
| 76 | <col> |
|---|
| 77 | </colgroup> |
|---|
| 78 | <thead><tr> |
|---|
| 79 | <th>Name</th> |
|---|
| 80 | <th>Type</th> |
|---|
| 81 | <th>Value</th> |
|---|
| 82 | <th>Purpose</th> |
|---|
| 83 | </tr></thead> |
|---|
| 84 | <tbody> |
|---|
| 85 | <tr> |
|---|
| 86 | <td>last-revision</td> |
|---|
| 87 | <td>#IMPLIED</td> |
|---|
| 88 | <td>CDATA</td> |
|---|
| 89 | <td>Set to $Date: 2006/11/03 19:39:44 $ to keep "last revised" information in sync with CVS changes</td> |
|---|
| 90 | </tr> |
|---|
| 91 | <tr> |
|---|
| 92 | <td>name</td> |
|---|
| 93 | <td>#REQUIRED</td> |
|---|
| 94 | <td>CDATA</td> |
|---|
| 95 | <td>The name of the element being declared to referenced</td> |
|---|
| 96 | </tr> |
|---|
| 97 | <tr> |
|---|
| 98 | <td>id</td> |
|---|
| 99 | <td>#IMPLIED</td> |
|---|
| 100 | <td>CDATA</td> |
|---|
| 101 | <td>A global identifier for this element</td> |
|---|
| 102 | </tr> |
|---|
| 103 | <tr> |
|---|
| 104 | <td>xml:base</td> |
|---|
| 105 | <td>#IMPLIED</td> |
|---|
| 106 | <td>CDATA</td> |
|---|
| 107 | <td>Implementation detail used by XIncludes</td> |
|---|
| 108 | </tr> |
|---|
| 109 | </tbody> |
|---|
| 110 | </table></div> |
|---|
| 111 | </div> |
|---|
| 112 | </div> |
|---|
| 113 | <table width="100%"><tr> |
|---|
| 114 | <td align="left"></td> |
|---|
| 115 | <td align="right"><small>Copyright © 2003-2005 Douglas Gregor</small></td> |
|---|
| 116 | </tr></table> |
|---|
| 117 | <hr> |
|---|
| 118 | <div class="spirit-nav"> |
|---|
| 119 | <a accesskey="p" href="constructor.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../reference.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="if-fails.html"><img src="../../images/next.png" alt="Next"></a> |
|---|
| 120 | </div> |
|---|
| 121 | </body> |
|---|
| 122 | </html> |
|---|