Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libstdc++-v3 / docs / html / ext / pb_assoc / basic_assoc_cntnr_compound_data.html
blob4cde4dbb8b1d1c7fe4e64dde0dca37da51244f26
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
5 <html>
6 <head>
7 <title>basic_assoc_cntnr Interface
8 </title>
10 </head>
12 <body>
13 <h1>
14 <tt>basic_assoc_cntnr
15 </tt>
17 Interface
20 </h1>
22 <p>A basic associative container specialized for the &quot;multimap&quot; case.
23 </p>
25 <ol>
26 <li>
27 <a href = "../../../../include/ext/pb_assoc/assoc_cntnr.hpp"><tt>assoc_cntnr.hpp</tt>
28 </a>
30 </li>
32 <li>
33 <a href = "#link1">Template parameters.
34 </a>
36 </li>
38 <li>
39 Public Types and Constants:
42 <ol>
43 <li>
44 <a href = "#link2">General container definitions.
45 </a>
47 </li>
49 <li>
50 <a href = "#link3">Categories.
51 </a>
53 </li>
55 <li>
56 <a href = "#link4">Policy definitions.
57 </a>
59 </li>
61 <li>
62 <a href = "#link5">Key-type definitions.
63 </a>
65 </li>
67 <li>
68 <a href = "#link6">Data-type definitions.
69 </a>
71 </li>
73 <li>
74 <a href = "#link7">Value-type definitions.
75 </a>
77 </li>
79 <li>
80 <a href = "#link8">Iterator definitions.
81 </a>
83 </li>
85 <li>
86 <a href = "#link9">Mapping-level definitions.
87 </a>
89 </li>
91 </ol>
93 </li>
95 <li>
96 Public Methods:
99 <ol>
100 <li>
101 <a href = "#link10">Constructors, destructor, and related.
102 </a>
104 </li>
106 <li>
107 <a href = "#link11">Information methods.
108 </a>
110 </li>
112 <li>
113 <a href = "#link12">Insert methods.
114 </a>
116 </li>
118 <li>
119 <a href = "#link13">Find methods.
120 </a>
122 </li>
124 <li>
125 <a href = "#link14">Erase methods.
126 </a>
128 </li>
130 <li>
131 <a href = "#link15">Iteration methods.
132 </a>
134 </li>
136 </ol>
138 </li>
140 </ol>
143 <h2>
144 <a name = "link1">Template parameters.
145 </a>
147 </h2>
149 <table WIDTH = "100%" BORDER = "1">
150 <TR><TD Width = "20%" ALIGN = "left"><b>Parameter</b></TD><TD Width = "50%" ALIGN = "left"><b>Description</b></TD><TD Width = "30%" ALIGN = "left"><b>Default Value</b></TD></TR>
153 <tr>
154 <td>
155 <pre><a name = "Key3735928856">Key</a></pre>
158 </td>
160 <td>
161 <p>Key type.</p>
164 </td>
166 <td>
170 </td>
172 </tr>
174 <tr>
175 <td>
176 <pre><a name = "Cntnr3735929076">Cntnr</a></pre>
179 </td>
181 <td>
182 <p>(Associative) container to which each data is mapped.</p>
185 </td>
187 <td>
191 </td>
193 </tr>
195 <tr>
196 <td>
197 <pre><a name = "DS_Tag3735929089">DS_Tag</a></pre>
200 </td>
202 <td>
203 <p>Data structure tag.</p>
206 </td>
208 <td>
212 </td>
214 </tr>
216 <tr>
217 <td>
218 <pre><a name = "Policy_Tl3735929470">Policy_Tl</a></pre>
221 </td>
223 <td>
224 <p>Policy typelist.</p>
227 </td>
229 <td>
233 </td>
235 </tr>
237 <tr>
238 <td>
239 <pre><a name = "Allocator3735929488">Allocator</a></pre>
242 </td>
244 <td>
245 <p>Allocator type.</p>
248 </td>
250 <td>
254 </td>
256 </tr>
258 </table>
260 <h2>
261 <a name = "link2">General container definitions.
262 </a>
264 </h2>
266 <table WIDTH = "100%" BORDER = "1">
267 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
270 <tr>
271 <td>
272 <pre><a name = "size_type3735929547">size_type</a></pre>
275 </td>
277 <td>
278 <pre><b>typename</b> <a href = "#Allocator3735929488">Allocator</a>::size_type</pre>
281 </td>
283 <td>
284 <p>Size type.</p>
287 </td>
289 </tr>
291 <tr>
292 <td>
293 <pre><a name = "difference_type3735930139">difference_type</a></pre>
296 </td>
298 <td>
299 <pre><b>typename</b> <a href = "#Allocator3735929488">Allocator</a>::difference_type</pre>
302 </td>
304 <td>
305 <p>Difference type.</p>
308 </td>
310 </tr>
312 </table>
314 <h2>
315 <a name = "link3">Categories.
316 </a>
318 </h2>
320 <table WIDTH = "100%" BORDER = "1">
321 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
324 <tr>
325 <td>
326 <pre><a name = "ds_category3735929731">ds_category</a></pre>
329 </td>
331 <td>
332 <pre><a href = "#DS_Tag3735929089">DS_Tag</a></pre>
335 </td>
337 <td>
338 <p>The underlying data-structure tag of the container. comment = </p>
341 </td>
343 </tr>
345 <tr>
346 <td>
347 <pre><a name = "ms_category3735929740">ms_category</a></pre>
350 </td>
352 <td>
353 <pre><a href = "compound_data_enabled_ms_tag.html"><tt>compound_data_enabled_ms_tag</tt></a></pre>
356 </td>
358 <td>
359 <p>The mapping-semantics category of the container. override_from = </p>
362 </td>
364 </tr>
366 </table>
368 <h2>
369 <a name = "link4">Policy definitions.
370 </a>
372 </h2>
374 <table WIDTH = "100%" BORDER = "1">
375 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
378 <tr>
379 <td>
380 <pre><a name = "allocator3735929520">allocator</a></pre>
383 </td>
385 <td>
386 <pre><a href = "#Allocator3735929488">Allocator</a></pre>
389 </td>
391 <td>
392 <p>Allocator type.</p>
395 </td>
397 </tr>
399 </table>
401 <h2>
402 <a name = "link5">Key-type definitions.
403 </a>
405 </h2>
407 <table WIDTH = "100%" BORDER = "1">
408 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
411 <tr>
412 <td>
413 <pre><a name = "key_type3735929433">key_type</a></pre>
416 </td>
418 <td>
419 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
420 <a href = "#Key3735928856">Key</a>&gt;::other::value_type</pre>
423 </td>
425 <td>
426 <p>Key type.</p>
429 </td>
431 </tr>
433 <tr>
434 <td>
435 <pre><a name = "key_reference3735929926">key_reference</a></pre>
438 </td>
440 <td>
441 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
442 <a href = "#Key3735928856">Key</a>&gt;::other::reference</pre>
445 </td>
447 <td>
448 <p>Key reference type.</p>
451 </td>
453 </tr>
455 <tr>
456 <td>
457 <pre><a name = "const_key_reference3735929552">const_key_reference</a></pre>
460 </td>
462 <td>
463 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
464 <a href = "#Key3735928856">Key</a>&gt;::other::const_reference</pre>
467 </td>
469 <td>
470 <p>Const key reference type.</p>
473 </td>
475 </tr>
477 <tr>
478 <td>
479 <pre><a name = "key_pointer3735929752">key_pointer</a></pre>
482 </td>
484 <td>
485 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
486 <a href = "#Key3735928856">Key</a>&gt;::other::pointer</pre>
489 </td>
491 <td>
492 <p>Key pointer type.</p>
495 </td>
497 </tr>
499 <tr>
500 <td>
501 <pre><a name = "const_key_pointer3735929445">const_key_pointer</a></pre>
504 </td>
506 <td>
507 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
508 <a href = "#Key3735928856">Key</a>&gt;::other::const_pointer</pre>
511 </td>
513 <td>
514 <p>Const key pointer type.</p>
517 </td>
519 </tr>
521 </table>
523 <h2>
524 <a name = "link6">Data-type definitions.
525 </a>
527 </h2>
529 <table WIDTH = "100%" BORDER = "1">
530 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
533 <tr>
534 <td>
535 <pre><a name = "data_type3735929514">data_type</a></pre>
538 </td>
540 <td>
541 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
542 <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::value_type</pre>
545 </td>
547 <td>
548 <p>Data type.</p>
551 </td>
553 </tr>
555 <tr>
556 <td>
557 <pre><a name = "data_reference3735930007">data_reference</a></pre>
560 </td>
562 <td>
563 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
564 <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::reference</pre>
567 </td>
569 <td>
570 <p>Data reference type.</p>
573 </td>
575 </tr>
577 <tr>
578 <td>
579 <pre><a name = "const_data_reference3735929597">const_data_reference</a></pre>
582 </td>
584 <td>
585 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
586 <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::const_reference</pre>
589 </td>
591 <td>
592 <p>Const data reference type.</p>
595 </td>
597 </tr>
599 <tr>
600 <td>
601 <pre><a name = "data_pointer3735929833">data_pointer</a></pre>
604 </td>
606 <td>
607 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
608 <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::pointer</pre>
611 </td>
613 <td>
614 <p>Data pointer type.</p>
617 </td>
619 </tr>
621 <tr>
622 <td>
623 <pre><a name = "const_data_pointer3735929517">const_data_pointer</a></pre>
626 </td>
628 <td>
629 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
630 <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::const_pointer</pre>
633 </td>
635 <td>
636 <p>Const data pointer type.</p>
639 </td>
641 </tr>
643 </table>
645 <h2>
646 <a name = "link7">Value-type definitions.
647 </a>
649 </h2>
651 <p><p>Types pertaining to the <b>domain</b> of the relationships of the table.</p> <p>This is explained in <a href = "concepts.html#concepts_types">Data Types, Value Types, Mapped Data Types, and Mapped Value Types</a> and <a href = "non_unique_mapping.html#types">Mapped Data Types and Mapped Value Types</a>.</p></p>
654 <table WIDTH = "100%" BORDER = "1">
655 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
658 <tr>
659 <td>
660 <pre><a name = "value_type3735929645">value_type</a></pre>
663 </td>
665 <td>
666 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
667 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::value_type</pre>
670 </td>
672 <td>
673 <p>Data type.</p>
676 </td>
678 </tr>
680 <tr>
681 <td>
682 <pre><a name = "reference3735929502">reference</a></pre>
685 </td>
687 <td>
688 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
689 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::reference</pre>
692 </td>
694 <td>
695 <p>Value reference type.</p>
698 </td>
700 </tr>
702 <tr>
703 <td>
704 <pre><a name = "const_reference3735930148">const_reference</a></pre>
707 </td>
709 <td>
710 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
711 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::const_reference</pre>
714 </td>
716 <td>
717 <p>Const value reference type.</p>
720 </td>
722 </tr>
724 <tr>
725 <td>
726 <pre><a name = "pointer3735929328">pointer</a></pre>
729 </td>
731 <td>
732 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
733 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::pointer</pre>
736 </td>
738 <td>
739 <p>Value pointer type.</p>
742 </td>
744 </tr>
746 <tr>
747 <td>
748 <pre><a name = "const_pointer3735929974">const_pointer</a></pre>
751 </td>
753 <td>
754 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
755 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#Cntnr3735929076">Cntnr</a>&gt;::other::const_pointer</pre>
758 </td>
760 <td>
761 <p>Const Value pointer type.</p>
764 </td>
766 </tr>
768 </table>
770 <h2>
771 <a name = "link8">Iterator definitions.
772 </a>
774 </h2>
776 <table WIDTH = "100%" BORDER = "1">
777 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
780 <tr>
781 <td>
782 <pre><a name = "const_find_iterator3735929537">const_find_iterator</a></pre>
785 </td>
787 <td>
788 <pre>Underlying data-structure's const find-type iterator.</pre>
791 </td>
793 <td>
794 <p>Const find-type iterator.</p>
797 </td>
799 </tr>
801 <tr>
802 <td>
803 <pre><a name = "find_iterator3735929945">find_iterator</a></pre>
806 </td>
808 <td>
809 <pre>Underlying data-structure's find-type iterator.</pre>
812 </td>
814 <td>
815 <p>Find-type iterator.</p>
818 </td>
820 </tr>
822 <tr>
823 <td>
824 <pre><a name = "const_iterator3735930079">const_iterator</a></pre>
827 </td>
829 <td>
830 <pre>Underlying data-structure's const range-type iterator.</pre>
833 </td>
835 <td>
836 <p>Const range-type iterator.</p>
839 </td>
841 </tr>
843 <tr>
844 <td>
845 <pre><a name = "iterator3735929433">iterator</a></pre>
848 </td>
850 <td>
851 <pre>Underlying data-structure's range-type iterator.</pre>
854 </td>
856 <td>
857 <p>Range-type iterator.</p>
860 </td>
862 </tr>
864 </table>
866 <h2>
867 <a name = "link9">Mapping-level definitions.
868 </a>
870 </h2>
872 <p>See <a href = "ms_gen.html">Mapping-Semantics</a>.</p>
875 <h2>
876 <a name = "link10">Constructors, destructor, and related.
877 </a>
879 </h2>
881 <table WIDTH = "100%" BORDER = "1">
882 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
885 <tr>
886 <td>
887 <pre><b>virtual</b>
888 ~basic_assoc_cntnr
889 ()</pre>
892 </td>
894 <td>
895 <p>Destructor.</p>
898 </td>
900 </tr>
902 </table>
904 <h2>
905 <a name = "link11">Information methods.
906 </a>
908 </h2>
910 <table WIDTH = "100%" BORDER = "1">
911 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
914 <tr>
915 <td>
916 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
917 size
918 () <b>const</b></pre>
921 </td>
923 <td>
924 <p>Returns the number of distinct <a href = "#value_type3735929645"><tt>value_type</tt></a> objects the container object is storing.</p>
927 </td>
929 </tr>
931 <tr>
932 <td>
933 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
934 max_size
935 () <b>const</b></pre>
938 </td>
940 <td>
941 <p>Returns an upper bound on the number of distinct <a href = "#value_type3735929645"><tt>value_type</tt></a> objects this container can store.</p>
944 </td>
946 </tr>
948 <tr>
949 <td>
950 <pre><b>inline</b> <b>bool</b>
951 empty
952 () <b>const</b></pre>
955 </td>
957 <td>
958 <p>Returns whether the container object is not storing any <a href = "#value_type3735929645"><tt>value_type</tt></a> objects.</p>
961 </td>
963 </tr>
965 <tr>
966 <td>
967 <pre><b>inline</b> static <a href = "#const_key_reference3735929552">const_key_reference</a>
968 extract_key
969 (<a href = "#const_reference3735930148">const_reference</a> r_val)</pre>
972 </td>
974 <td>
975 <p>Extracts a key from a <a href = "#value_type3735929645"><tt>value_type</tt></a>.</p>
978 </td>
980 </tr>
982 </table>
984 <h2>
985 <a name = "link12">Insert methods.
986 </a>
988 </h2>
990 <table WIDTH = "100%" BORDER = "1">
991 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
994 <tr>
995 <td>
996 <pre><b>inline</b> std::pair&lt;<a href = "#find_iterator3735929945">find_iterator</a>, <b>bool</b>&gt;
997 insert
998 (<a href = "#const_reference3735930148">const_reference</a> r_val)</pre>
1001 </td>
1003 <td>
1004 <p>Inserts a <a href = "#value_type3735929645"><tt>value_type</tt></a> object. If no <a href = "#value_type3735929645"><tt>value_type</tt></a> with <font color = "#666666"><tt>r_val</tt></font>'s key was in the container object, inserts and returns (<a href = "#find_iterator3735929945"><tt>find_iterator</tt></a> object associated with <font color = "#666666"><tt>r_val</tt></font>, <tt><b>true</b></tt>); otherwise just returns (<a href = "#find_iterator3735929945"><tt>find_iterator</tt></a> object associated with <font color = "#666666"><tt>r_val</tt></font>'s key, <tt><b>false</b></tt>).</p>
1007 </td>
1009 </tr>
1011 <tr>
1012 <td>
1013 <pre><b>inline</b> <a href = "#data_reference3735930007">data_reference</a>
1014 <b>operator</b>[]
1015 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key)</pre>
1018 </td>
1020 <td>
1021 <p>Inserts (if necessary) a <a href = "#value_type3735929645"><tt>value_type</tt></a> object associated with <font color = "#666666"><tt>r_key</tt></font>. Returns a <a href = "#data_reference3735930007"><tt>data_reference</tt></a> associated with <font color = "#666666"><tt>r_key</tt></font></p>
1024 </td>
1026 </tr>
1028 </table>
1030 <h2>
1031 <a name = "link13">Find methods.
1032 </a>
1034 </h2>
1036 <table WIDTH = "100%" BORDER = "1">
1037 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
1040 <tr>
1041 <td>
1042 <pre><b>inline</b> <a href = "#find_iterator3735929945">find_iterator</a>
1043 find
1044 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key)</pre>
1047 </td>
1049 <td>
1050 <p>Returns the <a href = "#find_iterator3735929945"><tt>find_iterator</tt></a> corresponding to the <a href = "#value_type3735929645"><tt>value_type</tt></a> with <font color = "#666666"><tt>r_key</tt></font> as its key, or the <a href = "#find_iterator3735929945"><tt>find_iterator</tt></a> corresponding to the just-after-last entry if no such <a href = "#value_type3735929645"><tt>value_type</tt></a>.</p>
1053 </td>
1055 </tr>
1057 <tr>
1058 <td>
1059 <pre><b>inline</b> <a href = "#const_find_iterator3735929537">const_find_iterator</a>
1060 find
1061 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key) <b>const</b></pre>
1064 </td>
1066 <td>
1067 <p>Returns the <a href = "#const_find_iterator3735929537"><tt>const_find_iterator</tt></a> corresponding to the <a href = "#value_type3735929645"><tt>value_type</tt></a> with <font color = "#666666"><tt>r_key</tt></font> as its key, or the <a href = "#const_find_iterator3735929537"><tt>const_find_iterator</tt></a> corresponding to the just-after-last entry if no such <a href = "#value_type3735929645"><tt>value_type</tt></a>.</p>
1070 </td>
1072 </tr>
1074 <tr>
1075 <td>
1076 <pre><b>inline</b> <a href = "#const_data_reference3735929597">const_data_reference</a>
1077 <b>operator</b>[]
1078 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key) <b>const</b></pre>
1081 </td>
1083 <td>
1084 <p>Inserts (if necessary) a <a href = "#value_type3735929645"><tt>value_type</tt></a> object associated with <font color = "#666666"><tt>r_key</tt></font>. Returns a <a href = "#data_reference3735930007"><tt>data_reference</tt></a> associated with <font color = "#666666"><tt>r_key</tt></font></p>
1087 </td>
1089 </tr>
1091 </table>
1093 <h2>
1094 <a name = "link14">Erase methods.
1095 </a>
1097 </h2>
1099 <table WIDTH = "100%" BORDER = "1">
1100 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
1103 <tr>
1104 <td>
1105 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
1106 erase
1107 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key)</pre>
1110 </td>
1112 <td>
1113 <p>Erases the <a href = "#value_type3735929645"><tt>value_type</tt></a> associated with <font color = "#666666"><tt>r_key</tt></font>; returns the number of <a href = "#value_type3735929645"><tt>value_type</tt></a>s erased (0 or 1).</p>
1116 </td>
1118 </tr>
1120 <tr>
1121 <td>
1122 <pre><b>template</b>&lt;
1123 <b>class</b> Pred&gt;
1124 <b>inline</b> <a href = "#size_type3735929547">size_type</a>
1125 erase_if
1126 (Pred prd)</pre>
1129 </td>
1131 <td>
1132 <p>Erases any <a href = "#value_type3735929645"><tt>value_type</tt></a> satisfying the predicate <font color = "#666666"><tt>prd</tt></font> (this is transactional, either all matching <a href = "#value_type3735929645"><tt>value_type</tt></a>s are erased, or, if an exception is thrown (for types whose erase can throw an exception) none); returns the number of <a href = "#value_type3735929645"><tt>value_type</tt></a>s erased.</p>
1135 </td>
1137 </tr>
1139 <tr>
1140 <td>
1141 <pre><b>void</b>
1142 clear
1143 ()</pre>
1146 </td>
1148 <td>
1149 <p>Clears the container object.</p>
1152 </td>
1154 </tr>
1156 </table>
1158 <h2>
1159 <a name = "link15">Iteration methods.
1160 </a>
1162 </h2>
1164 <table WIDTH = "100%" BORDER = "1">
1165 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
1168 <tr>
1169 <td>
1170 <pre><b>inline</b> <a href = "#iterator3735929433">iterator</a>
1171 begin
1172 ()</pre>
1175 </td>
1177 <td>
1178 <p>Returns an <a href = "#iterator3735929433"><tt>iterator</tt></a> corresponding to the first <a href = "#value_type3735929645"><tt>value_type</tt></a> in the container.</p>
1181 </td>
1183 </tr>
1185 <tr>
1186 <td>
1187 <pre><b>inline</b> <a href = "#const_iterator3735930079">const_iterator</a>
1188 begin
1189 () <b>const</b></pre>
1192 </td>
1194 <td>
1195 <p>Returns a <a href = "#const_iterator3735930079"><tt>const_iterator</tt></a> corresponding to the first <a href = "#value_type3735929645"><tt>value_type</tt></a> in the container.</p>
1198 </td>
1200 </tr>
1202 <tr>
1203 <td>
1204 <pre><b>inline</b> <a href = "#iterator3735929433">iterator</a>
1206 ()</pre>
1209 </td>
1211 <td>
1212 <p>Returns an <a href = "#iterator3735929433"><tt>iterator</tt></a> corresponding to the just-after_last <a href = "#value_type3735929645"><tt>value_type</tt></a> in the container.</p>
1215 </td>
1217 </tr>
1219 <tr>
1220 <td>
1221 <pre><b>inline</b> <a href = "#const_iterator3735930079">const_iterator</a>
1223 () <b>const</b></pre>
1226 </td>
1228 <td>
1229 <p>Returns a <a href = "#const_iterator3735930079"><tt>const_iterator</tt></a> corresponding to the just-after_last <a href = "#value_type3735929645"><tt>value_type</tt></a> in the container.</p>
1232 </td>
1234 </tr>
1236 </table>
1240 </body>
1242 </html>