| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 
|---|
| 2 |  | 
|---|
| 3 | <html> | 
|---|
| 4 | <head> | 
|---|
| 5 |   <meta http-equiv="Content-Language" content="en-us"> | 
|---|
| 6 |   <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> | 
|---|
| 7 |  | 
|---|
| 8 |   <title>Assignable</title> | 
|---|
| 9 | </head> | 
|---|
| 10 |  | 
|---|
| 11 | <body bgcolor="#FFFFFF" link="#0000EE" text="#000000" vlink="#551A8B" alink= | 
|---|
| 12 | "#FF0000"> | 
|---|
| 13 |   <img src="../../boost.png" alt="C++ Boost" width="277" height= | 
|---|
| 14 |   "86"><br clear="none"> | 
|---|
| 15 |  | 
|---|
| 16 |   <h1>Assignable</h1> | 
|---|
| 17 |  | 
|---|
| 18 |   <h3>Description</h3> | 
|---|
| 19 |  | 
|---|
| 20 |   <p>A type is Assignable if it is possible to assign one object of the type | 
|---|
| 21 |   to another object of that type.</p> | 
|---|
| 22 |  | 
|---|
| 23 |   <h3>Notation</h3> | 
|---|
| 24 |  | 
|---|
| 25 |   <table summary=""> | 
|---|
| 26 |     <tr> | 
|---|
| 27 |       <td valign="top"><tt>T</tt></td> | 
|---|
| 28 |  | 
|---|
| 29 |       <td valign="top">is type that is a model of Assignable</td> | 
|---|
| 30 |     </tr> | 
|---|
| 31 |  | 
|---|
| 32 |     <tr> | 
|---|
| 33 |       <td valign="top"><tt>t</tt></td> | 
|---|
| 34 |  | 
|---|
| 35 |       <td valign="top">is an object of type <tt>T</tt></td> | 
|---|
| 36 |     </tr> | 
|---|
| 37 |  | 
|---|
| 38 |     <tr> | 
|---|
| 39 |       <td valign="top"><tt>u</tt></td> | 
|---|
| 40 |  | 
|---|
| 41 |       <td valign="top">is an object of type <tt>T</tt> or possibly <tt>const | 
|---|
| 42 |       T</tt></td> | 
|---|
| 43 |     </tr> | 
|---|
| 44 |   </table> | 
|---|
| 45 |  | 
|---|
| 46 |   <h3>Definitions</h3> | 
|---|
| 47 |  | 
|---|
| 48 |   <h3>Valid expressions</h3> | 
|---|
| 49 |  | 
|---|
| 50 |   <table border summary=""> | 
|---|
| 51 |     <tr> | 
|---|
| 52 |       <th>Name</th> | 
|---|
| 53 |  | 
|---|
| 54 |       <th>Expression</th> | 
|---|
| 55 |  | 
|---|
| 56 |       <th>Return type</th> | 
|---|
| 57 |  | 
|---|
| 58 |       <th>Semantics</th> | 
|---|
| 59 |     </tr> | 
|---|
| 60 |  | 
|---|
| 61 |     <tr> | 
|---|
| 62 |       <td valign="top">Assignment</td> | 
|---|
| 63 |  | 
|---|
| 64 |       <td valign="top"><tt>t = u</tt></td> | 
|---|
| 65 |  | 
|---|
| 66 |       <td valign="top"><tt>T&</tt></td> | 
|---|
| 67 |  | 
|---|
| 68 |       <td valign="top"><tt>t</tt> is equivalent to <tt>u</tt></td> | 
|---|
| 69 |     </tr> | 
|---|
| 70 |   </table> | 
|---|
| 71 |  | 
|---|
| 72 |   <h3>Models</h3> | 
|---|
| 73 |  | 
|---|
| 74 |   <ul> | 
|---|
| 75 |     <li><tt>int</tt></li> | 
|---|
| 76 |  | 
|---|
| 77 |     <li><tt>std::pair</tt></li> | 
|---|
| 78 |   </ul> | 
|---|
| 79 |  | 
|---|
| 80 |   <h3>See also</h3> | 
|---|
| 81 |  | 
|---|
| 82 |   <p><a href= | 
|---|
| 83 |   "http://www.sgi.com/tech/stl/DefaultConstructible.html">DefaultConstructible</a> | 
|---|
| 84 |   and <a href="./CopyConstructible.html">CopyConstructible</a><br></p> | 
|---|
| 85 |   <hr> | 
|---|
| 86 |  | 
|---|
| 87 |   <p><a href="http://validator.w3.org/check?uri=referer"><img border="0" src= | 
|---|
| 88 |   "http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" | 
|---|
| 89 |   height="31" width="88"></a></p> | 
|---|
| 90 |  | 
|---|
| 91 |   <p>Revised  | 
|---|
| 92 |   <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan -->05 December, 2006<!--webbot bot="Timestamp" endspan i-checksum="38516" --></p> | 
|---|
| 93 |  | 
|---|
| 94 |   <table summary=""> | 
|---|
| 95 |     <tr valign="top"> | 
|---|
| 96 |       <td nowrap><i>Copyright © 2000</i></td> | 
|---|
| 97 |  | 
|---|
| 98 |       <td><i><a href="http://www.lsc.nd.edu/~jsiek">Jeremy Siek</a>, Univ.of | 
|---|
| 99 |       Notre Dame (<a href= | 
|---|
| 100 |       "mailto:jsiek@lsc.nd.edu">jsiek@lsc.nd.edu</a>)</i></td> | 
|---|
| 101 |     </tr> | 
|---|
| 102 |   </table> | 
|---|
| 103 |  | 
|---|
| 104 |   <p><i>Distributed under the Boost Software License, Version 1.0. (See | 
|---|
| 105 |   accompanying file <a href="../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or | 
|---|
| 106 |   copy at <a href= | 
|---|
| 107 |   "http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>)</i></p> | 
|---|
| 108 | </body> | 
|---|
| 109 | </html> | 
|---|