Dead
[official-gcc.git] / gomp-20050608-branch / libstdc++-v3 / docs / html / ext / pb_assoc / basic_assoc_cntnr.html
blobca91c332eda6e87c8ffe25bb5cf383d7d88944ce
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;map&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 </ol>
87 </li>
89 <li>
90 Public Methods:
93 <ol>
94 <li>
95 <a href = "#link9">Constructors, destructor, and related.
96 </a>
98 </li>
100 <li>
101 <a href = "#link10">Information methods.
102 </a>
104 </li>
106 <li>
107 <a href = "#link11">Insert methods.
108 </a>
110 </li>
112 <li>
113 <a href = "#link12">Find methods.
114 </a>
116 </li>
118 <li>
119 <a href = "#link13">Erase methods.
120 </a>
122 </li>
124 <li>
125 <a href = "#link14">Iteration methods.
126 </a>
128 </li>
130 </ol>
132 </li>
134 </ol>
137 <h2>
138 <a name = "link1">Template parameters.
139 </a>
141 </h2>
143 <table WIDTH = "100%" BORDER = "1">
144 <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>
147 <tr>
148 <td>
149 <pre><a name = "Key3735928856">Key</a></pre>
152 </td>
154 <td>
155 <p>Key type.</p>
158 </td>
160 <td>
164 </td>
166 </tr>
168 <tr>
169 <td>
170 <pre><a name = "Data3735928937">Data</a></pre>
173 </td>
175 <td>
176 <p>Data type.</p>
179 </td>
181 <td>
185 </td>
187 </tr>
189 <tr>
190 <td>
191 <pre><a name = "DS_Tag3735929089">DS_Tag</a></pre>
194 </td>
196 <td>
197 <p>Data structure tag.</p>
200 </td>
202 <td>
206 </td>
208 </tr>
210 <tr>
211 <td>
212 <pre><a name = "Policy_Tl3735929470">Policy_Tl</a></pre>
215 </td>
217 <td>
218 <p>Policy typelist.</p>
221 </td>
223 <td>
227 </td>
229 </tr>
231 <tr>
232 <td>
233 <pre><a name = "Allocator3735929488">Allocator</a></pre>
236 </td>
238 <td>
239 <p>Allocator type.</p>
242 </td>
244 <td>
248 </td>
250 </tr>
252 </table>
254 <h2>
255 <a name = "link2">General container definitions.
256 </a>
258 </h2>
260 <table WIDTH = "100%" BORDER = "1">
261 <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>
264 <tr>
265 <td>
266 <pre><a name = "size_type3735929547">size_type</a></pre>
269 </td>
271 <td>
272 <pre><b>typename</b> <a href = "#Allocator3735929488">Allocator</a>::size_type</pre>
275 </td>
277 <td>
278 <p>Size type.</p>
281 </td>
283 </tr>
285 <tr>
286 <td>
287 <pre><a name = "difference_type3735930139">difference_type</a></pre>
290 </td>
292 <td>
293 <pre><b>typename</b> <a href = "#Allocator3735929488">Allocator</a>::difference_type</pre>
296 </td>
298 <td>
299 <p>Difference type.</p>
302 </td>
304 </tr>
306 </table>
308 <h2>
309 <a name = "link3">Categories.
310 </a>
312 </h2>
314 <table WIDTH = "100%" BORDER = "1">
315 <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>
318 <tr>
319 <td>
320 <pre><a name = "ds_category3735929731">ds_category</a></pre>
323 </td>
325 <td>
326 <pre><a href = "#DS_Tag3735929089">DS_Tag</a></pre>
329 </td>
331 <td>
332 <p>The underlying data-structure tag of the container. comment = </p>
335 </td>
337 </tr>
339 <tr>
340 <td>
341 <pre><a name = "ms_category3735929740">ms_category</a></pre>
344 </td>
346 <td>
347 <pre><a href = "data_enabled_ms_tag.html"><tt>data_enabled_ms_tag</tt></a></pre>
350 </td>
352 <td>
353 <p>The mapping-semantics category of the container.</p>
356 </td>
358 </tr>
360 </table>
362 <h2>
363 <a name = "link4">Policy definitions.
364 </a>
366 </h2>
368 <table WIDTH = "100%" BORDER = "1">
369 <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>
372 <tr>
373 <td>
374 <pre><a name = "allocator3735929520">allocator</a></pre>
377 </td>
379 <td>
380 <pre><a href = "#Allocator3735929488">Allocator</a></pre>
383 </td>
385 <td>
386 <p>Allocator type.</p>
389 </td>
391 </tr>
393 </table>
395 <h2>
396 <a name = "link5">Key-type definitions.
397 </a>
399 </h2>
401 <table WIDTH = "100%" BORDER = "1">
402 <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>
405 <tr>
406 <td>
407 <pre><a name = "key_type3735929433">key_type</a></pre>
410 </td>
412 <td>
413 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
414 <a href = "#Key3735928856">Key</a>&gt;::other::value_type</pre>
417 </td>
419 <td>
420 <p>Key type.</p>
423 </td>
425 </tr>
427 <tr>
428 <td>
429 <pre><a name = "key_reference3735929926">key_reference</a></pre>
432 </td>
434 <td>
435 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
436 <a href = "#Key3735928856">Key</a>&gt;::other::reference</pre>
439 </td>
441 <td>
442 <p>Key reference type.</p>
445 </td>
447 </tr>
449 <tr>
450 <td>
451 <pre><a name = "const_key_reference3735929552">const_key_reference</a></pre>
454 </td>
456 <td>
457 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
458 <a href = "#Key3735928856">Key</a>&gt;::other::const_reference</pre>
461 </td>
463 <td>
464 <p>Const key reference type.</p>
467 </td>
469 </tr>
471 <tr>
472 <td>
473 <pre><a name = "key_pointer3735929752">key_pointer</a></pre>
476 </td>
478 <td>
479 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
480 <a href = "#Key3735928856">Key</a>&gt;::other::pointer</pre>
483 </td>
485 <td>
486 <p>Key pointer type.</p>
489 </td>
491 </tr>
493 <tr>
494 <td>
495 <pre><a name = "const_key_pointer3735929445">const_key_pointer</a></pre>
498 </td>
500 <td>
501 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
502 <a href = "#Key3735928856">Key</a>&gt;::other::const_pointer</pre>
505 </td>
507 <td>
508 <p>Const key pointer type.</p>
511 </td>
513 </tr>
515 </table>
517 <h2>
518 <a name = "link6">Data-type definitions.
519 </a>
521 </h2>
523 <table WIDTH = "100%" BORDER = "1">
524 <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>
527 <tr>
528 <td>
529 <pre><a name = "data_type3735929514">data_type</a></pre>
532 </td>
534 <td>
535 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
536 <a href = "#Data3735928937">Data</a>&gt;::other::value_type</pre>
539 </td>
541 <td>
542 <p>Data type.</p>
545 </td>
547 </tr>
549 <tr>
550 <td>
551 <pre><a name = "data_reference3735930007">data_reference</a></pre>
554 </td>
556 <td>
557 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
558 <a href = "#Data3735928937">Data</a>&gt;::other::reference</pre>
561 </td>
563 <td>
564 <p>Data reference type.</p>
567 </td>
569 </tr>
571 <tr>
572 <td>
573 <pre><a name = "const_data_reference3735929597">const_data_reference</a></pre>
576 </td>
578 <td>
579 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
580 <a href = "#Data3735928937">Data</a>&gt;::other::const_reference</pre>
583 </td>
585 <td>
586 <p>Const data reference type.</p>
589 </td>
591 </tr>
593 <tr>
594 <td>
595 <pre><a name = "data_pointer3735929833">data_pointer</a></pre>
598 </td>
600 <td>
601 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
602 <a href = "#Data3735928937">Data</a>&gt;::other::pointer</pre>
605 </td>
607 <td>
608 <p>Data pointer type.</p>
611 </td>
613 </tr>
615 <tr>
616 <td>
617 <pre><a name = "const_data_pointer3735929517">const_data_pointer</a></pre>
620 </td>
622 <td>
623 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind&lt;
624 <a href = "#Data3735928937">Data</a>&gt;::other::const_pointer</pre>
627 </td>
629 <td>
630 <p>Const data pointer type.</p>
633 </td>
635 </tr>
637 </table>
639 <h2>
640 <a name = "link7">Value-type definitions.
641 </a>
643 </h2>
645 <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>
648 <table WIDTH = "100%" BORDER = "1">
649 <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>
652 <tr>
653 <td>
654 <pre><a name = "value_type3735929645">value_type</a></pre>
657 </td>
659 <td>
660 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
661 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#data_type3735929514">data_type</a>&gt; &gt;::other::value_type</pre>
664 </td>
666 <td>
667 <p>Data type.</p>
670 </td>
672 </tr>
674 <tr>
675 <td>
676 <pre><a name = "reference3735929502">reference</a></pre>
679 </td>
681 <td>
682 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
683 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#data_type3735929514">data_type</a>&gt; &gt;::other::reference</pre>
686 </td>
688 <td>
689 <p>Value reference type.</p>
692 </td>
694 </tr>
696 <tr>
697 <td>
698 <pre><a name = "const_reference3735930148">const_reference</a></pre>
701 </td>
703 <td>
704 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
705 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#data_type3735929514">data_type</a>&gt; &gt;::other::const_reference</pre>
708 </td>
710 <td>
711 <p>Const value reference type.</p>
714 </td>
716 </tr>
718 <tr>
719 <td>
720 <pre><a name = "pointer3735929328">pointer</a></pre>
723 </td>
725 <td>
726 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
727 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#data_type3735929514">data_type</a>&gt; &gt;::other::pointer</pre>
730 </td>
732 <td>
733 <p>Value pointer type.</p>
736 </td>
738 </tr>
740 <tr>
741 <td>
742 <pre><a name = "const_pointer3735929974">const_pointer</a></pre>
745 </td>
747 <td>
748 <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::rebind&lt;
749 std::pair&lt;<b>const</b> <a href = "#key_type3735929433">key_type</a>, <a href = "#data_type3735929514">data_type</a>&gt; &gt;::other::const_pointer</pre>
752 </td>
754 <td>
755 <p>Const Value pointer type.</p>
758 </td>
760 </tr>
762 </table>
764 <h2>
765 <a name = "link8">Iterator definitions.
766 </a>
768 </h2>
770 <table WIDTH = "100%" BORDER = "1">
771 <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>
774 <tr>
775 <td>
776 <pre><a name = "const_find_iterator3735929537">const_find_iterator</a></pre>
779 </td>
781 <td>
782 <pre>Underlying data-structure's const find-type iterator.</pre>
785 </td>
787 <td>
788 <p>Const find-type iterator.</p>
791 </td>
793 </tr>
795 <tr>
796 <td>
797 <pre><a name = "find_iterator3735929945">find_iterator</a></pre>
800 </td>
802 <td>
803 <pre>Underlying data-structure's find-type iterator.</pre>
806 </td>
808 <td>
809 <p>Find-type iterator.</p>
812 </td>
814 </tr>
816 <tr>
817 <td>
818 <pre><a name = "const_iterator3735930079">const_iterator</a></pre>
821 </td>
823 <td>
824 <pre>Underlying data-structure's const range-type iterator.</pre>
827 </td>
829 <td>
830 <p>Const range-type iterator.</p>
833 </td>
835 </tr>
837 <tr>
838 <td>
839 <pre><a name = "iterator3735929433">iterator</a></pre>
842 </td>
844 <td>
845 <pre>Underlying data-structure's range-type iterator.</pre>
848 </td>
850 <td>
851 <p>Range-type iterator.</p>
854 </td>
856 </tr>
858 </table>
860 <h2>
861 <a name = "link9">Constructors, destructor, and related.
862 </a>
864 </h2>
866 <table WIDTH = "100%" BORDER = "1">
867 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
870 <tr>
871 <td>
872 <pre><b>virtual</b>
873 ~basic_assoc_cntnr
874 ()</pre>
877 </td>
879 <td>
880 <p>Destructor.</p>
883 </td>
885 </tr>
887 </table>
889 <h2>
890 <a name = "link10">Information methods.
891 </a>
893 </h2>
895 <table WIDTH = "100%" BORDER = "1">
896 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
899 <tr>
900 <td>
901 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
902 size
903 () <b>const</b></pre>
906 </td>
908 <td>
909 <p>Returns the number of distinct <a href = "#value_type3735929645"><tt>value_type</tt></a> objects the container object is storing.</p>
912 </td>
914 </tr>
916 <tr>
917 <td>
918 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
919 max_size
920 () <b>const</b></pre>
923 </td>
925 <td>
926 <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>
929 </td>
931 </tr>
933 <tr>
934 <td>
935 <pre><b>inline</b> <b>bool</b>
936 empty
937 () <b>const</b></pre>
940 </td>
942 <td>
943 <p>Returns whether the container object is not storing any <a href = "#value_type3735929645"><tt>value_type</tt></a> objects.</p>
946 </td>
948 </tr>
950 <tr>
951 <td>
952 <pre><b>inline</b> static <a href = "#const_key_reference3735929552">const_key_reference</a>
953 extract_key
954 (<a href = "#const_reference3735930148">const_reference</a> r_val)</pre>
957 </td>
959 <td>
960 <p>Extracts a key from a <a href = "#value_type3735929645"><tt>value_type</tt></a>.</p>
963 </td>
965 </tr>
967 </table>
969 <h2>
970 <a name = "link11">Insert methods.
971 </a>
973 </h2>
975 <table WIDTH = "100%" BORDER = "1">
976 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
979 <tr>
980 <td>
981 <pre><b>inline</b> std::pair&lt;<a href = "#find_iterator3735929945">find_iterator</a>, <b>bool</b>&gt;
982 insert
983 (<a href = "#const_reference3735930148">const_reference</a> r_val)</pre>
986 </td>
988 <td>
989 <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>
992 </td>
994 </tr>
996 <tr>
997 <td>
998 <pre><b>inline</b> <a href = "#data_reference3735930007">data_reference</a>
999 <b>operator</b>[]
1000 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key)</pre>
1003 </td>
1005 <td>
1006 <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>
1009 </td>
1011 </tr>
1013 </table>
1015 <h2>
1016 <a name = "link12">Find methods.
1017 </a>
1019 </h2>
1021 <table WIDTH = "100%" BORDER = "1">
1022 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
1025 <tr>
1026 <td>
1027 <pre><b>inline</b> <a href = "#find_iterator3735929945">find_iterator</a>
1028 find
1029 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key)</pre>
1032 </td>
1034 <td>
1035 <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>
1038 </td>
1040 </tr>
1042 <tr>
1043 <td>
1044 <pre><b>inline</b> <a href = "#const_find_iterator3735929537">const_find_iterator</a>
1045 find
1046 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key) <b>const</b></pre>
1049 </td>
1051 <td>
1052 <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>
1055 </td>
1057 </tr>
1059 <tr>
1060 <td>
1061 <pre><b>inline</b> <a href = "#const_data_reference3735929597">const_data_reference</a>
1062 <b>operator</b>[]
1063 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key) <b>const</b></pre>
1066 </td>
1068 <td>
1069 <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>
1072 </td>
1074 </tr>
1076 </table>
1078 <h2>
1079 <a name = "link13">Erase methods.
1080 </a>
1082 </h2>
1084 <table WIDTH = "100%" BORDER = "1">
1085 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
1088 <tr>
1089 <td>
1090 <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
1091 erase
1092 (<a href = "#const_key_reference3735929552">const_key_reference</a> r_key)</pre>
1095 </td>
1097 <td>
1098 <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>
1101 </td>
1103 </tr>
1105 <tr>
1106 <td>
1107 <pre><b>template</b>&lt;
1108 <b>class</b> Pred&gt;
1109 <b>inline</b> <a href = "#size_type3735929547">size_type</a>
1110 erase_if
1111 (Pred prd)</pre>
1114 </td>
1116 <td>
1117 <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>
1120 </td>
1122 </tr>
1124 <tr>
1125 <td>
1126 <pre><b>void</b>
1127 clear
1128 ()</pre>
1131 </td>
1133 <td>
1134 <p>Clears the container object.</p>
1137 </td>
1139 </tr>
1141 </table>
1143 <h2>
1144 <a name = "link14">Iteration methods.
1145 </a>
1147 </h2>
1149 <table WIDTH = "100%" BORDER = "1">
1150 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
1153 <tr>
1154 <td>
1155 <pre><b>inline</b> <a href = "#iterator3735929433">iterator</a>
1156 begin
1157 ()</pre>
1160 </td>
1162 <td>
1163 <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>
1166 </td>
1168 </tr>
1170 <tr>
1171 <td>
1172 <pre><b>inline</b> <a href = "#const_iterator3735930079">const_iterator</a>
1173 begin
1174 () <b>const</b></pre>
1177 </td>
1179 <td>
1180 <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>
1183 </td>
1185 </tr>
1187 <tr>
1188 <td>
1189 <pre><b>inline</b> <a href = "#iterator3735929433">iterator</a>
1191 ()</pre>
1194 </td>
1196 <td>
1197 <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>
1200 </td>
1202 </tr>
1204 <tr>
1205 <td>
1206 <pre><b>inline</b> <a href = "#const_iterator3735930079">const_iterator</a>
1208 () <b>const</b></pre>
1211 </td>
1213 <td>
1214 <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>
1217 </td>
1219 </tr>
1221 </table>
1225 </body>
1227 </html>