Assignable.html 2.6 KB

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