Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
BoostBook element namespace
c++boost.gif (8819 bytes)HomeLibrariesPeopleFAQMore

BoostBook element namespace

namespace — Declares a namespace

Synopsis

namespace ::= (class| class-specialization| struct| struct-specialization| union| union-specialization| typedef| enum| free-function-group| function| overloaded-function| namespace)*

Description

BoostBook namespaces are declared via the <namespace> element. As in C++, namespaces can be nested and contain other C++ constructs, such as classes or functions. The name attribute of a <namespace> element gives the namespace name (e.g., "boost"). The Any library is defined entirely within namespace boost by:

<library-reference>
  <header name="boost/any.hpp">
    <namespace name="boost">  
      <!-- C++ constructs in the boost namespace -->
    </namespace>
  </header>
</library-reference>

Attributes

NameTypeValuePurpose
last-revision#IMPLIEDCDATASet to $Date: 2004/01/15 16:08:59 $ to keep "last revised" information in sync with CVS changes
name#REQUIREDCDATAThe name of the element being declared to referenced
id#IMPLIEDCDATAA global identifier for this element
xml:base#IMPLIEDCDATAImplementation detail used by XIncludes
Last revised: , at GMTCopyright © 2003 Douglas Gregor