<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>Namespaces</title><metaname="generator"content="DocBook XSL Stylesheets Vsnapshot"/><metaname="keywords"content="ISO C++, library"/><metaname="keywords"content="ISO C++, runtime, library"/><linkrel="home"href="../index.html"title="The GNU C++ Library"/><linkrel="up"href="using.html"title="Chapter3.Using"/><linkrel="prev"href="using_dual_abi.html"title="Dual ABI"/><linkrel="next"href="using_dynamic_or_shared.html"title="Linking"/></head><body><divclass="navheader"><tablewidth="100%"summary="Navigation header"><tr><thcolspan="3"align="center">Namespaces</th></tr><tr><tdwidth="20%"align="left"><aaccesskey="p"href="using_dual_abi.html">Prev</a></td><thwidth="60%"align="center">Chapter3.Using</th><tdwidth="20%"align="right"><aaccesskey="n"href="using_dynamic_or_shared.html">Next</a></td></tr></table><hr/></div><divclass="section"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aid="manual.intro.using.namespaces"></a>Namespaces</h2></div></div></div><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aid="manual.intro.using.namespaces.all"></a>Available Namespaces</h3></div></div></div><p> There are three main namespaces.
</p><divclass="itemizedlist"><ulclass="itemizedlist"style="list-style-type: disc; "><liclass="listitem"><p>std</p><p>The ISO C++ standards specify that "all library entities are defined
</p></li></ul></div><p> The library uses a number of inline namespaces as implementation
details that are not intended for users to refer to directly, these include
<codeclass="code">std::__detail</code>, <codeclass="code">std::__cxx11</code> and <codeclass="code">std::_V2</code>.
</p><p> A complete list of implementation namespaces (including namespace contents) is available in the generated source <aclass="link"href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespaces.html"target="_top">documentation</a>.
</p><divclass="itemizedlist"><ulclass="itemizedlist"style="list-style-type: disc; "><liclass="listitem"><p>put a kind of <spanclass="emphasis"><em>using-declaration</em></span> in your source