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.

146 lines
12 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::scalable_allocator&lt; T &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="a00111.html">scalable_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="#pub-attribs">Public Attributes</a> &#124;
  45. <a href="a00277.html">List of all members</a> </div>
  46. <div class="headertitle">
  47. <div class="title">tbb::scalable_allocator&lt; T &gt; Class Template Reference<div class="ingroups"><a class="el" href="a00236.html">Memory Allocation</a></div></div> </div>
  48. </div><!--header-->
  49. <div class="contents">
  50. <p>Meets "allocator" requirements of ISO C++ Standard, Section 20.1.5.
  51. <a href="a00111.html#details">More...</a></p>
  52. <p><code>#include &lt;scalable_allocator.h&gt;</code></p>
  53. <table class="memberdecls">
  54. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  55. Classes</h2></td></tr>
  56. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00105.html">rebind</a></td></tr>
  57. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  58. </table><table class="memberdecls">
  59. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  60. Public Types</h2></td></tr>
  61. <tr class="memitem:aa9171ca5fc6dc349ae95a28cd16b504c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9171ca5fc6dc349ae95a28cd16b504c"></a>
  62. typedef <br class="typebreak"/>
  63. internal::allocator_type&lt; T &gt;<br class="typebreak"/>
  64. ::value_type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
  65. <tr class="separator:aa9171ca5fc6dc349ae95a28cd16b504c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  66. <tr class="memitem:af5352e44d6bcde3d0bdf8368acd3c84c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af5352e44d6bcde3d0bdf8368acd3c84c"></a>
  67. typedef value_type *&#160;</td><td class="memItemRight" valign="bottom"><b>pointer</b></td></tr>
  68. <tr class="separator:af5352e44d6bcde3d0bdf8368acd3c84c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  69. <tr class="memitem:a9722dbf8015bed6319bc16996d45546f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9722dbf8015bed6319bc16996d45546f"></a>
  70. typedef const value_type *&#160;</td><td class="memItemRight" valign="bottom"><b>const_pointer</b></td></tr>
  71. <tr class="separator:a9722dbf8015bed6319bc16996d45546f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  72. <tr class="memitem:af3c8f5f07f47672c0c97fab799807728"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af3c8f5f07f47672c0c97fab799807728"></a>
  73. typedef value_type &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
  74. <tr class="separator:af3c8f5f07f47672c0c97fab799807728"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:a4de1dd8be241f945d464cbef0dd6c5b8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4de1dd8be241f945d464cbef0dd6c5b8"></a>
  76. typedef const value_type &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>const_reference</b></td></tr>
  77. <tr class="separator:a4de1dd8be241f945d464cbef0dd6c5b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ac2376f6bacc6dcb3aa37f27a78681e89"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2376f6bacc6dcb3aa37f27a78681e89"></a>
  79. typedef size_t&#160;</td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr>
  80. <tr class="separator:ac2376f6bacc6dcb3aa37f27a78681e89"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:a751a0d5a410244226f62914cbde260ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a751a0d5a410244226f62914cbde260ff"></a>
  82. typedef ptrdiff_t&#160;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
  83. <tr class="separator:a751a0d5a410244226f62914cbde260ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. </table><table class="memberdecls">
  85. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  86. Public Member Functions</h2></td></tr>
  87. <tr class="memitem:a276a735dca4ba6abbe3b251d4c003ea7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a276a735dca4ba6abbe3b251d4c003ea7"></a>
  88. &#160;</td><td class="memItemRight" valign="bottom"><b>scalable_allocator</b> (const <a class="el" href="a00111.html">scalable_allocator</a> &amp;) throw ()</td></tr>
  89. <tr class="separator:a276a735dca4ba6abbe3b251d4c003ea7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:ae680426a4dfbd51a7447d12354679c6e"><td class="memTemplParams" colspan="2"><a class="anchor" id="ae680426a4dfbd51a7447d12354679c6e"></a>
  91. template&lt;typename U &gt; </td></tr>
  92. <tr class="memitem:ae680426a4dfbd51a7447d12354679c6e"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>scalable_allocator</b> (const <a class="el" href="a00111.html">scalable_allocator</a>&lt; U &gt; &amp;) throw ()</td></tr>
  93. <tr class="separator:ae680426a4dfbd51a7447d12354679c6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:a647d824ce9396c3c4cb4450b0c2b7b3c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a647d824ce9396c3c4cb4450b0c2b7b3c"></a>
  95. pointer&#160;</td><td class="memItemRight" valign="bottom"><b>address</b> (reference x) const </td></tr>
  96. <tr class="separator:a647d824ce9396c3c4cb4450b0c2b7b3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:ab30cf9e0d0bef7ba8567edc6efb045e4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab30cf9e0d0bef7ba8567edc6efb045e4"></a>
  98. const_pointer&#160;</td><td class="memItemRight" valign="bottom"><b>address</b> (const_reference x) const </td></tr>
  99. <tr class="separator:ab30cf9e0d0bef7ba8567edc6efb045e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:acf24945c12dc0586dfb1f8638daf7838"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf24945c12dc0586dfb1f8638daf7838"></a>
  101. pointer&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#acf24945c12dc0586dfb1f8638daf7838">allocate</a> (size_type n, const void *=0)</td></tr>
  102. <tr class="memdesc:acf24945c12dc0586dfb1f8638daf7838"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate space for n objects. <br/></td></tr>
  103. <tr class="separator:acf24945c12dc0586dfb1f8638daf7838"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a0632b19f25e5d5f86f18b3101925f488"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0632b19f25e5d5f86f18b3101925f488"></a>
  105. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#a0632b19f25e5d5f86f18b3101925f488">deallocate</a> (pointer p, size_type)</td></tr>
  106. <tr class="memdesc:a0632b19f25e5d5f86f18b3101925f488"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free previously allocated block of memory. <br/></td></tr>
  107. <tr class="separator:a0632b19f25e5d5f86f18b3101925f488"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:afaa85d739b466699cf669116fd10d175"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afaa85d739b466699cf669116fd10d175"></a>
  109. size_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#afaa85d739b466699cf669116fd10d175">max_size</a> () const throw ()</td></tr>
  110. <tr class="memdesc:afaa85d739b466699cf669116fd10d175"><td class="mdescLeft">&#160;</td><td class="mdescRight">Largest value for which method allocate might succeed. <br/></td></tr>
  111. <tr class="separator:afaa85d739b466699cf669116fd10d175"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a0502de23b9ed7c1611703fe725cb4cd3"><td class="memTemplParams" colspan="2"><a class="anchor" id="a0502de23b9ed7c1611703fe725cb4cd3"></a>
  113. template&lt;typename U , typename... Args&gt; </td></tr>
  114. <tr class="memitem:a0502de23b9ed7c1611703fe725cb4cd3"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><b>construct</b> (U *p, Args &amp;&amp;...args)</td></tr>
  115. <tr class="separator:a0502de23b9ed7c1611703fe725cb4cd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:ac79ddb098880d8bde6097ac11f641188"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac79ddb098880d8bde6097ac11f641188"></a>
  117. void&#160;</td><td class="memItemRight" valign="bottom"><b>destroy</b> (pointer p)</td></tr>
  118. <tr class="separator:ac79ddb098880d8bde6097ac11f641188"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. </table><table class="memberdecls">
  120. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  121. Public Attributes</h2></td></tr>
  122. <tr class="memitem:a5da5dab41683415768ef034005cd6302"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5da5dab41683415768ef034005cd6302"></a>
  123. ::new((void *) p) U(std voi&#160;</td><td class="memItemRight" valign="bottom"><b>construct</b> )(pointer p, const value_type &amp;value)</td></tr>
  124. <tr class="separator:a5da5dab41683415768ef034005cd6302"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. </table>
  126. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  127. <div class="textblock"><h3>template&lt;typename T&gt;<br/>
  128. class tbb::scalable_allocator&lt; T &gt;</h3>
  129. <p>Meets "allocator" requirements of ISO C++ Standard, Section 20.1.5. </p>
  130. <p>The members are ordered the same way they are in section 20.4.1 of the ISO C++ standard. </p>
  131. </div><hr/>The documentation for this class was generated from the following file:<ul>
  132. <li><a class="el" href="a00199.html">scalable_allocator.h</a></li>
  133. </ul>
  134. </div><!-- contents -->
  135. <hr>
  136. <p></p>
  137. Copyright &copy; 2005-2014 Intel Corporation. All Rights Reserved.
  138. <p></p>
  139. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  140. registered trademarks or trademarks of Intel Corporation or its
  141. subsidiaries in the United States and other countries.
  142. <p></p>
  143. * Other names and brands may be claimed as the property of others.