1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <meta name="generator" content=
7 "HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />
9 <title>move_to_front_lu_policy Interface</title>
10 <meta http-equiv="Content-Type" content=
11 "text/html; charset=us-ascii" />
16 <h1><tt>move_to_front_lu_policy</tt> Interface</h1>
18 <p>A list-update policy that unconditionally moves elements to
19 the front of the list.</p>
21 <p>Defined in: <a href=
22 "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>
24 <h2><a name="link1" id="link1">Template Parameters</a></h2>
26 <table class="c1" width="100%" border="1" summary=
27 "Template Parameters">
29 <td width="20%" align="left"><b>Parameter</b></td>
31 <td width="50%" align="left"><b>Description</b></td>
33 <td width="30%" align="left"><b>Default Value</b></td>
39 <a name="Allocator35940069" id=
40 "Allocator35940069"><b>class</b> Allocator </a>
45 <p>Allocator type.</p>
47 <p>This is used only for definitions, e.g., the size
53 std::allocator<<b>char</b>>
59 <h2><a name="link2" id="link2">Public Types and
62 <h3><a name="link3" id="link3">Policy Definitions</a></h3>
64 <table class="c1" width="100%" border="1" summary="Types">
66 <td width="30%" align="left"><b>Type</b></td>
68 <td width="55%" align="left"><b>Definition</b></td>
70 <td width="15%" align="left"><b>Description</b></td>
76 <a name="allocator48440069" id="allocator48440069">allocator</a>
82 <a href="#Allocator35940069"><tt>Allocator</tt></a>
87 <p><a href="#Allocator35940069"><tt>Allocator</tt></a>
93 <h3><a name="link4" id="link4">Metadata-Type
96 <table class="c1" width="100%" border="1" summary="Types">
98 <td width="30%" align="left"><b>Type</b></td>
100 <td width="55%" align="left"><b>Definition</b></td>
102 <td width="15%" align="left"><b>Description</b></td>
108 <a name="metadata_type2849297114" id=
109 "metadata_type2849297114">metadata_type</a>
115 <a href="null_lu_metadata.html"><span class=
116 "c2"><tt>null_lu_metadata</tt></span></a>
121 <p>Metadata on which this functor operates.</p>
123 <p>In this case, none.</p>
130 <a name="metadata_reference583863863" id=
131 "metadata_reference583863863">metadata_reference</a>
137 <b>typename</b> <a href=
138 "#Allocator35940069"><tt>Allocator</tt></a>::<b>template</b> rebind<
140 "#metadata_type2849297114"><tt>metadata_type</tt></a>>::other::reference
145 <p>Reference to metadata on which this functor
151 <h2><a name="link5" id="link5">Public Methods</a></h2>
153 <h3><a name="link6" id="link6">Metadata Methods</a></h3>
155 <table class="c1" width="100%" border="1" summary="Methods">
157 <td width="45%" align="left"><b>Method</b></td>
159 <td width="55%" align="left"><b>Description</b></td>
165 <a href="#metadata_type2849297114"><tt>metadata_type</tt></a>
172 <p>Creates a metadata object.</p>
179 <b>inline</b> <b>bool</b>
182 "#metadata_reference583863863"><tt>metadata_reference</tt></a> r_metadata) <b>const</b>
187 <p>Decides whether a metadata object should be moved to
188 the front of the list.</p>