PageRenderTime 26ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/libstdc++-v3/doc/html/ext/pb_ds/move_to_front_lu_policy.html

https://bitbucket.org/pizzafactory/pf-gcc
HTML | 194 lines | 154 code | 40 blank | 0 comment | 0 complexity | 6ab4d601493fdd6011282c7a9085e83f MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta name="generator" content=
  6. "HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />
  7. <title>move_to_front_lu_policy Interface</title>
  8. <meta http-equiv="Content-Type" content=
  9. "text/html; charset=us-ascii" />
  10. </head>
  11. <body>
  12. <div id="page">
  13. <h1><tt>move_to_front_lu_policy</tt> Interface</h1>
  14. <p>A list-update policy that unconditionally moves elements to
  15. the front of the list.</p>
  16. <p>Defined in: <a href=
  17. "http://gcc.gnu.org/viewcvs/*checkout*/trunk/libstdc%2B%2B-v3/include/ext/pb_ds/list_update_policy.hpp"><tt>list_update_policy.hpp</tt></a></p>
  18. <h2><a name="link1" id="link1">Template Parameters</a></h2>
  19. <table class="c1" width="100%" border="1" summary=
  20. "Template Parameters">
  21. <tr>
  22. <td width="20%" align="left"><b>Parameter</b></td>
  23. <td width="50%" align="left"><b>Description</b></td>
  24. <td width="30%" align="left"><b>Default Value</b></td>
  25. </tr>
  26. <tr>
  27. <td>
  28. <pre>
  29. <a name="Allocator35940069" id=
  30. "Allocator35940069"><b>class</b> Allocator </a>
  31. </pre>
  32. </td>
  33. <td>
  34. <p>Allocator type.</p>
  35. <p>This is used only for definitions, e.g., the size
  36. type.</p>
  37. </td>
  38. <td>
  39. <pre>
  40. std::allocator&lt;<b>char</b>&gt;
  41. </pre>
  42. </td>
  43. </tr>
  44. </table>
  45. <h2><a name="link2" id="link2">Public Types and
  46. Constants</a></h2>
  47. <h3><a name="link3" id="link3">Policy Definitions</a></h3>
  48. <table class="c1" width="100%" border="1" summary="Types">
  49. <tr>
  50. <td width="30%" align="left"><b>Type</b></td>
  51. <td width="55%" align="left"><b>Definition</b></td>
  52. <td width="15%" align="left"><b>Description</b></td>
  53. </tr>
  54. <tr>
  55. <td>
  56. <pre>
  57. <a name="allocator48440069" id="allocator48440069">allocator</a>
  58. </pre>
  59. </td>
  60. <td>
  61. <pre>
  62. <a href="#Allocator35940069"><tt>Allocator</tt></a>
  63. </pre>
  64. </td>
  65. <td>
  66. <p><a href="#Allocator35940069"><tt>Allocator</tt></a>
  67. type.</p>
  68. </td>
  69. </tr>
  70. </table>
  71. <h3><a name="link4" id="link4">Metadata-Type
  72. Definitions</a></h3>
  73. <table class="c1" width="100%" border="1" summary="Types">
  74. <tr>
  75. <td width="30%" align="left"><b>Type</b></td>
  76. <td width="55%" align="left"><b>Definition</b></td>
  77. <td width="15%" align="left"><b>Description</b></td>
  78. </tr>
  79. <tr>
  80. <td>
  81. <pre>
  82. <a name="metadata_type2849297114" id=
  83. "metadata_type2849297114">metadata_type</a>
  84. </pre>
  85. </td>
  86. <td>
  87. <pre>
  88. <a href="null_lu_metadata.html"><span class=
  89. "c2"><tt>null_lu_metadata</tt></span></a>
  90. </pre>
  91. </td>
  92. <td>
  93. <p>Metadata on which this functor operates.</p>
  94. <p>In this case, none.</p>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td>
  99. <pre>
  100. <a name="metadata_reference583863863" id=
  101. "metadata_reference583863863">metadata_reference</a>
  102. </pre>
  103. </td>
  104. <td>
  105. <pre>
  106. <b>typename</b> <a href=
  107. "#Allocator35940069"><tt>Allocator</tt></a>::<b>template</b> rebind&lt;
  108. <a href=
  109. "#metadata_type2849297114"><tt>metadata_type</tt></a>&gt;::other::reference
  110. </pre>
  111. </td>
  112. <td>
  113. <p>Reference to metadata on which this functor
  114. operates.</p>
  115. </td>
  116. </tr>
  117. </table>
  118. <h2><a name="link5" id="link5">Public Methods</a></h2>
  119. <h3><a name="link6" id="link6">Metadata Methods</a></h3>
  120. <table class="c1" width="100%" border="1" summary="Methods">
  121. <tr>
  122. <td width="45%" align="left"><b>Method</b></td>
  123. <td width="55%" align="left"><b>Description</b></td>
  124. </tr>
  125. <tr>
  126. <td>
  127. <pre>
  128. <a href="#metadata_type2849297114"><tt>metadata_type</tt></a>
  129. <b>operator</b>()
  130. () <b>const</b>
  131. </pre>
  132. </td>
  133. <td>
  134. <p>Creates a metadata object.</p>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td>
  139. <pre>
  140. <b>inline</b> <b>bool</b>
  141. <b>operator</b>()
  142. (<a href=
  143. "#metadata_reference583863863"><tt>metadata_reference</tt></a> r_metadata) <b>const</b>
  144. </pre>
  145. </td>
  146. <td>
  147. <p>Decides whether a metadata object should be moved to
  148. the front of the list.</p>
  149. </td>
  150. </tr>
  151. </table>
  152. </div>
  153. </body>
  154. </html>