| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>swap</title> |
| 7 | <link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> |
| 10 | <link rel="up" href="db_multimap.html" title="Chapter 6. Db_multimap" /> |
| 11 | <link rel="prev" href="stldb_multimapoperator_assign.html" title="operator=" /> |
| 12 | <link rel="next" href="stldb_multimapoperator_eq.html" title="operator==" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">swap</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="stldb_multimapoperator_assign.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 6. |
| 26 | Db_multimap </th> |
| 27 | <td width="20%" align="right"> <a accesskey="n" href="stldb_multimapoperator_eq.html">Next</a></td> |
| 28 | </tr> |
| 29 | </table> |
| 30 | <hr /> |
| 31 | </div> |
| 32 | <div class="sect1" lang="en" xml:lang="en"> |
| 33 | <div class="titlepage"> |
| 34 | <div> |
| 35 | <div> |
| 36 | <h2 class="title" style="clear: both"><a id="stldb_multimapswap"></a>swap</h2> |
| 37 | </div> |
| 38 | </div> |
| 39 | </div> |
| 40 | <div class="sect2" lang="en" xml:lang="en"> |
| 41 | <div class="titlepage"> |
| 42 | <div> |
| 43 | <div> |
| 44 | <h3 class="title"><a id="stldb_multimapswap_details"></a>Function Details</h3> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | <pre class="programlisting"> |
| 49 | void swap(db_multimap< kdt, ddt, value_type_sub > &mp, |
| 50 | bool b_truncate=true) |
| 51 | </pre> |
| 52 | <p>Swap content with another multimap container. </p> |
| 53 | <p>This function supports auto-commit. </p> |
| 54 | <div class="sect3" lang="en" xml:lang="en"> |
| 55 | <div class="titlepage"> |
| 56 | <div> |
| 57 | <div> |
| 58 | <h4 class="title"><a id="idp50660208"></a>Parameters</h4> |
| 59 | </div> |
| 60 | </div> |
| 61 | </div> |
| 62 | <div class="sect4" lang="en" xml:lang="en"> |
| 63 | <div class="titlepage"> |
| 64 | <div> |
| 65 | <div> |
| 66 | <h5 class="title"><a id="idp50658416"></a>b_truncate</h5> |
| 67 | </div> |
| 68 | </div> |
| 69 | </div> |
| 70 | <p>See <a class="link" href="stldb_mapswap.html" title="swap">db_map::swap()</a> |
| 71 | for details. </p> |
| 72 | </div> |
| 73 | <div class="sect4" lang="en" xml:lang="en"> |
| 74 | <div class="titlepage"> |
| 75 | <div> |
| 76 | <div> |
| 77 | <h5 class="title"><a id="idp50660272"></a>mp</h5> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |
| 81 | <p>The other container to swap content with. </p> |
| 82 | </div> |
| 83 | </div> |
| 84 | <div class="sect3" lang="en" xml:lang="en"> |
| 85 | <div class="titlepage"> |
| 86 | <div> |
| 87 | <div> |
| 88 | <h4 class="title"><a id="idp50646112"></a>See Also</h4> |
| 89 | </div> |
| 90 | </div> |
| 91 | </div> |
| 92 | <p> |
| 93 | </p> |
| 94 | <p><a class="link" href="stldb_vectorclear.html" title="clear">db_vector::clear()</a> |
| 95 | </p> |
| 96 | <p> |
| 97 | </p> |
| 98 | </div> |
| 99 | </div> |
| 100 | <div class="sect2" lang="en" xml:lang="en"> |
| 101 | <div class="titlepage"> |
| 102 | <div> |
| 103 | <div> |
| 104 | <h3 class="title"><a id="idp50640384"></a>Class</h3> |
| 105 | </div> |
| 106 | </div> |
| 107 | </div> |
| 108 | <p> |
| 109 | <a class="link" href="db_multimap.html" title="Chapter 6. Db_multimap">db_multimap</a> |
| 110 | </p> |
| 111 | </div> |
| 112 | </div> |
| 113 | <div class="navfooter"> |
| 114 | <hr /> |
| 115 | <table width="100%" summary="Navigation footer"> |
| 116 | <tr> |
| 117 | <td width="40%" align="left"><a accesskey="p" href="stldb_multimapoperator_assign.html">Prev</a> </td> |
| 118 | <td width="20%" align="center"> |
| 119 | <a accesskey="u" href="db_multimap.html">Up</a> |
| 120 | </td> |
| 121 | <td width="40%" align="right"> <a accesskey="n" href="stldb_multimapoperator_eq.html">Next</a></td> |
| 122 | </tr> |
| 123 | <tr> |
| 124 | <td width="40%" align="left" valign="top">operator= </td> |
| 125 | <td width="20%" align="center"> |
| 126 | <a accesskey="h" href="index.html">Home</a> |
| 127 | </td> |
| 128 | <td width="40%" align="right" valign="top"> operator==</td> |
| 129 | </tr> |
| 130 | </table> |
| 131 | </div> |
| 132 | </body> |
| 133 | </html> |