You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
9.2 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.4"/>
  7. <title>tbb::zero_allocator&lt; T, Allocator &gt; Class Template Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <!-- end header part -->
  16. <!-- Generated by Doxygen 1.8.4 -->
  17. <div id="navrow1" class="tabs">
  18. <ul class="tablist">
  19. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  20. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  21. <li><a href="modules.html"><span>Modules</span></a></li>
  22. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  23. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  24. <li><a href="files.html"><span>Files</span></a></li>
  25. </ul>
  26. </div>
  27. <div id="navrow2" class="tabs2">
  28. <ul class="tablist">
  29. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  30. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  31. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  32. </ul>
  33. </div>
  34. <div id="nav-path" class="navpath">
  35. <ul>
  36. <li class="navelem"><a class="el" href="a00222.html">tbb</a></li><li class="navelem"><a class="el" href="a00160.html">zero_allocator</a></li> </ul>
  37. </div>
  38. </div><!-- top -->
  39. <div class="header">
  40. <div class="summary">
  41. <a href="#nested-classes">Classes</a> &#124;
  42. <a href="#pub-types">Public Types</a> &#124;
  43. <a href="#pub-methods">Public Member Functions</a> &#124;
  44. <a href="a00293.html">List of all members</a> </div>
  45. <div class="headertitle">
  46. <div class="title">tbb::zero_allocator&lt; T, Allocator &gt; Class Template Reference<div class="ingroups"><a class="el" href="a00236.html">Memory Allocation</a></div></div> </div>
  47. </div><!--header-->
  48. <div class="contents">
  49. <p>Meets "allocator" requirements of ISO C++ Standard, Section 20.1.5.
  50. <a href="a00160.html#details">More...</a></p>
  51. <p><code>#include &lt;tbb_allocator.h&gt;</code></p>
  52. <div class="dynheader">
  53. Inheritance diagram for tbb::zero_allocator&lt; T, Allocator &gt;:</div>
  54. <div class="dyncontent">
  55. <div class="center">
  56. <img src="a00160.png" usemap="#tbb::zero_allocator&lt; T, Allocator &gt;_map" alt=""/>
  57. <map id="tbb::zero_allocator&lt; T, Allocator &gt;_map" name="tbb::zero_allocator&lt; T, Allocator &gt;_map">
  58. </map>
  59. </div></div>
  60. <table class="memberdecls">
  61. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  62. Classes</h2></td></tr>
  63. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00100.html">rebind</a></td></tr>
  64. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  65. </table><table class="memberdecls">
  66. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  67. Public Types</h2></td></tr>
  68. <tr class="memitem:a62f27899a40c4bfaa6ba4313ffc833ef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62f27899a40c4bfaa6ba4313ffc833ef"></a>
  69. typedef Allocator&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>base_allocator_type</b></td></tr>
  70. <tr class="separator:a62f27899a40c4bfaa6ba4313ffc833ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  71. <tr class="memitem:a906f5c2d47fff1bf4fd868a2441752d1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a906f5c2d47fff1bf4fd868a2441752d1"></a>
  72. typedef <br class="typebreak"/>
  73. base_allocator_type::value_type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
  74. <tr class="separator:a906f5c2d47fff1bf4fd868a2441752d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:afb9458462ffca5d8734968862c9c4e6b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afb9458462ffca5d8734968862c9c4e6b"></a>
  76. typedef <br class="typebreak"/>
  77. base_allocator_type::pointer&#160;</td><td class="memItemRight" valign="bottom"><b>pointer</b></td></tr>
  78. <tr class="separator:afb9458462ffca5d8734968862c9c4e6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a2a08548bf83e153b40029de72738b60f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2a08548bf83e153b40029de72738b60f"></a>
  80. typedef <br class="typebreak"/>
  81. base_allocator_type::const_pointer&#160;</td><td class="memItemRight" valign="bottom"><b>const_pointer</b></td></tr>
  82. <tr class="separator:a2a08548bf83e153b40029de72738b60f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:a0afb88e128fc595c62f24e34f445d834"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0afb88e128fc595c62f24e34f445d834"></a>
  84. typedef <br class="typebreak"/>
  85. base_allocator_type::reference&#160;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
  86. <tr class="separator:a0afb88e128fc595c62f24e34f445d834"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a28180fc12dc69c275983f6400526ba01"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28180fc12dc69c275983f6400526ba01"></a>
  88. typedef <br class="typebreak"/>
  89. base_allocator_type::const_reference&#160;</td><td class="memItemRight" valign="bottom"><b>const_reference</b></td></tr>
  90. <tr class="separator:a28180fc12dc69c275983f6400526ba01"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:a8e741b3db82dfdce3f68cfd6d66901ce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e741b3db82dfdce3f68cfd6d66901ce"></a>
  92. typedef <br class="typebreak"/>
  93. base_allocator_type::size_type&#160;</td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr>
  94. <tr class="separator:a8e741b3db82dfdce3f68cfd6d66901ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:aba68dc670e813a0c5c7f06e262b66187"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba68dc670e813a0c5c7f06e262b66187"></a>
  96. typedef <br class="typebreak"/>
  97. base_allocator_type::difference_type&#160;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
  98. <tr class="separator:aba68dc670e813a0c5c7f06e262b66187"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. </table><table class="memberdecls">
  100. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  101. Public Member Functions</h2></td></tr>
  102. <tr class="memitem:a9080a874dd20d0ca8e404683113990f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9080a874dd20d0ca8e404683113990f2"></a>
  103. &#160;</td><td class="memItemRight" valign="bottom"><b>zero_allocator</b> (const <a class="el" href="a00160.html">zero_allocator</a> &amp;a) throw ()</td></tr>
  104. <tr class="separator:a9080a874dd20d0ca8e404683113990f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:ab417c217e597c6f412c5a630ba18bc32"><td class="memTemplParams" colspan="2"><a class="anchor" id="ab417c217e597c6f412c5a630ba18bc32"></a>
  106. template&lt;typename U &gt; </td></tr>
  107. <tr class="memitem:ab417c217e597c6f412c5a630ba18bc32"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>zero_allocator</b> (const <a class="el" href="a00160.html">zero_allocator</a>&lt; U &gt; &amp;a) throw ()</td></tr>
  108. <tr class="separator:ab417c217e597c6f412c5a630ba18bc32"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:a1b9fe1273c2332e3c0b571d7bf1ba615"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b9fe1273c2332e3c0b571d7bf1ba615"></a>
  110. pointer&#160;</td><td class="memItemRight" valign="bottom"><b>allocate</b> (const size_type n, const void *hint=0)</td></tr>
  111. <tr class="separator:a1b9fe1273c2332e3c0b571d7bf1ba615"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. </table>
  113. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  114. <div class="textblock"><h3>template&lt;typename T, template&lt; typename X &gt; class Allocator = tbb_allocator&gt;<br/>
  115. class tbb::zero_allocator&lt; T, Allocator &gt;</h3>
  116. <p>Meets "allocator" requirements of ISO C++ Standard, Section 20.1.5. </p>
  117. <p>The class is an adapter over an actual allocator that fills the allocation using memset function with template argument C as the value. The members are ordered the same way they are in section 20.4.1 of the ISO C++ standard. </p>
  118. </div><hr/>The documentation for this class was generated from the following file:<ul>
  119. <li>tbb_allocator.h</li>
  120. </ul>
  121. </div><!-- contents -->
  122. <hr>
  123. <p></p>
  124. Copyright &copy; 2005-2014 Intel Corporation. All Rights Reserved.
  125. <p></p>
  126. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  127. registered trademarks or trademarks of Intel Corporation or its
  128. subsidiaries in the United States and other countries.
  129. <p></p>
  130. * Other names and brands may be claimed as the property of others.