<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libstdc++: Allocators</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libstdc++</div> </td> </tr> </tbody> </table> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('a01187.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> </div> <div class="headertitle"> <div class="title">Allocators</div> </div> <div class="ingroups"><a class="el" href="a01170.html">Memory</a></div></div> <div class="contents"> <div class="dynheader"> Collaboration diagram for Allocators:</div> <div class="dyncontent"> <center><table><tr><td><img src="a01187.png" border="0" alt="" usemap="#a01187"/> <map name="a01187" id="a01187"> <area shape="rect" id="node2" href="a01170.html" title="Memory" alt="" coords="5,5,72,35"/></map> </td></tr></table></center> </div> <h2><a name="nested-classes"></a> Classes</h2> <ul> <li>class <a class="el" href="a00009.html">__gnu_cxx::__mt_alloc< _Tp, _Poolp ></a> <dl class="el"><dd class="mdescRight">This is a fixed size (power of 2) allocator which - when compiled with thread support - will maintain one freelist per size per thread plus a <em>global</em> one. Steps are taken to limit the per thread freelist sizes (by returning excess back to the <em>global</em> list).Further details: <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt12ch32.html.">http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt12ch32.html.</a> <a href="a00009.html#details">More...</a><br/></dl><li>class <a class="el" href="a00014.html">__gnu_cxx::__pool_alloc< _Tp ></a> <dl class="el"><dd class="mdescRight">Allocator using a memory pool with a single lock. <a href="a00014.html#details">More...</a><br/></dl><li>class <a class="el" href="a00022.html">__gnu_cxx::_ExtPtr_allocator< _Tp ></a> <dl class="el"><dd class="mdescRight">An example allocator which uses a non-standard pointer type.This allocator specifies that containers use a 'relative pointer' as it's pointer type. (See <a class="el" href="a00975.html">ext/pointer.h</a>) Memory allocation in this example is still performed using <a class="el" href="a00246.html" title="The standard allocator, as per [20.4].Further details: http://gcc.gnu.org/onlinedocs/libstdc++/manual...">std::allocator</a>. <a href="a00022.html#details">More...</a><br/></dl><li>class <a class="el" href="a00030.html">__gnu_cxx::array_allocator< _Tp, _Array ></a> <dl class="el"><dd class="mdescRight">An allocator that uses previously allocated memory. This memory can be externally, globally, or otherwise allocated. <a href="a00030.html#details">More...</a><br/></dl><li>class <a class="el" href="a00033.html">__gnu_cxx::bitmap_allocator< _Tp ></a> <dl class="el"><dd class="mdescRight">Bitmap Allocator, primary template. <a href="a00033.html#details">More...</a><br/></dl><li>class <a class="el" href="a00040.html">__gnu_cxx::debug_allocator< _Alloc ></a> <dl class="el"><dd class="mdescRight">A meta-allocator with debugging bits, as per [20.4].This is precisely the allocator defined in the C++ Standard. <a href="a00040.html#details">More...</a><br/></dl><li>class <a class="el" href="a00054.html">__gnu_cxx::malloc_allocator< _Tp ></a> <dl class="el"><dd class="mdescRight">An allocator that uses malloc.This is precisely the allocator defined in the C++ Standard. <a href="a00054.html#details">More...</a><br/></dl><li>class <a class="el" href="a00055.html">__gnu_cxx::new_allocator< _Tp ></a> <dl class="el"><dd class="mdescRight">An allocator that uses global new, as per [20.4].This is precisely the allocator defined in the C++ Standard. <a href="a00055.html#details">More...</a><br/></dl><li>class <a class="el" href="a00072.html">__gnu_cxx::throw_allocator_base< _Tp, _Cond ></a> <dl class="el"><dd class="mdescRight">Allocator class with logging and exception generation control. Intended to be used as an allocator_type in templatized code.Note: Deallocate not allowed to throw. <a href="a00072.html#details">More...</a><br/></dl><li>class <a class="el" href="a00246.html">std::allocator< _Tp ></a> <dl class="el"><dd class="mdescRight">The <em>standard</em> allocator, as per [20.4].Further details: <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt04ch11.html.">http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt04ch11.html.</a> <a href="a00246.html#details">More...</a><br/></dl></ul> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <p>Classes encapsulating memory operations. </p> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="footer">Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li> </ul> </div> </body> </html>