<!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++: __gnu_cxx::debug_allocator< _Alloc > Class Template Reference</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('a00040.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">__gnu_cxx::debug_allocator< _Alloc > Class Template Reference<div class="ingroups"><a class="el" href="a01187.html">Allocators</a></div></div> </div> </div> <div class="contents"> <!-- doxytag: class="__gnu_cxx::debug_allocator" --> <p>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></p> <p><a href="a01436.html">List of all members.</a></p> <h2><a name="pub-types"></a> Public Types</h2> <ul> <li><a class="anchor" id="acf67fc886dc62e2c2955317d31577a99"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::const_pointer" ref="acf67fc886dc62e2c2955317d31577a99" args="" --> typedef _Alloc::const_pointer <b>const_pointer</b> <li><a class="anchor" id="a90400bc69b79878b897d35b2d2c824b5"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::const_reference" ref="a90400bc69b79878b897d35b2d2c824b5" args="" --> typedef _Alloc::const_reference <b>const_reference</b> <li><a class="anchor" id="ade85277dfbafd1babad12de0e3042673"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::difference_type" ref="ade85277dfbafd1babad12de0e3042673" args="" --> typedef _Alloc::difference_type <b>difference_type</b> <li><a class="anchor" id="abdafc83cf18f97de28b9523964f00d56"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::pointer" ref="abdafc83cf18f97de28b9523964f00d56" args="" --> typedef _Alloc::pointer <b>pointer</b> <li><a class="anchor" id="a6cdfe30f08ee326f2095042d825ad086"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::reference" ref="a6cdfe30f08ee326f2095042d825ad086" args="" --> typedef _Alloc::reference <b>reference</b> <li><a class="anchor" id="a21940b40b7f37153538df955848b2ce4"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::size_type" ref="a21940b40b7f37153538df955848b2ce4" args="" --> typedef _Alloc::size_type <b>size_type</b> <li><a class="anchor" id="afe71d11e79f01947fe5f8f4d2418beef"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::value_type" ref="afe71d11e79f01947fe5f8f4d2418beef" args="" --> typedef _Alloc::value_type <b>value_type</b> </ul> <h2><a name="pub-methods"></a> Public Member Functions</h2> <ul> <li><a class="anchor" id="a35c31a42e941b95326564c8f46f4caf6"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::allocate" ref="a35c31a42e941b95326564c8f46f4caf6" args="(size_type __n)" --> pointer <b>allocate</b> (size_type __n) <li><a class="anchor" id="a2ce26e0dd6936ae3d1486ea5adfbc109"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::allocate" ref="a2ce26e0dd6936ae3d1486ea5adfbc109" args="(size_type __n, const void *__hint)" --> pointer <b>allocate</b> (size_type __n, const void *__hint) <li><a class="anchor" id="a96dbe177d737b022eea7b7faecc7d6fe"></a><!-- doxytag: member="__gnu_cxx::debug_allocator::deallocate" ref="a96dbe177d737b022eea7b7faecc7d6fe" args="(pointer __p, size_type __n)" --> void <b>deallocate</b> (pointer __p, size_type __n) </ul> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><h3>template<typename _Alloc><br/> class __gnu_cxx::debug_allocator< _Alloc ></h3> <p>A meta-allocator with debugging bits, as per [20.4].</p> <p>This is precisely the allocator defined in the C++ Standard. </p> <ul> <li>all allocation calls operator new</li> <li>all deallocation calls operator delete </li> </ul> <p>Definition at line <a class="el" href="a00852_source.html#l00063">63</a> of file <a class="el" href="a00852_source.html">debug_allocator.h</a>.</p> </div><hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="a00852_source.html">debug_allocator.h</a></li> </ul> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="a01125.html">__gnu_cxx</a> </li> <li class="navelem"><a class="el" href="a00040.html">debug_allocator</a> </li> <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>