File: Assignable.html

package info (click to toggle)
boost1.35 1.35.0-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 203,856 kB
  • ctags: 337,867
  • sloc: cpp: 938,683; xml: 56,847; ansic: 41,589; python: 18,999; sh: 11,566; makefile: 664; perl: 494; yacc: 456; asm: 353; csh: 6
file content (109 lines) | stat: -rw-r--r-- 2,682 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
  <meta http-equiv="Content-Language" content="en-us">
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">

  <title>Assignable</title>
</head>

<body bgcolor="#FFFFFF" link="#0000EE" text="#000000" vlink="#551A8B" alink=
"#FF0000">
  <img src="../../boost.png" alt="C++ Boost" width="277" height=
  "86"><br clear="none">

  <h1>Assignable</h1>

  <h3>Description</h3>

  <p>A type is Assignable if it is possible to assign one object of the type
  to another object of that type.</p>

  <h3>Notation</h3>

  <table summary="">
    <tr>
      <td valign="top"><tt>T</tt></td>

      <td valign="top">is type that is a model of Assignable</td>
    </tr>

    <tr>
      <td valign="top"><tt>t</tt></td>

      <td valign="top">is an object of type <tt>T</tt></td>
    </tr>

    <tr>
      <td valign="top"><tt>u</tt></td>

      <td valign="top">is an object of type <tt>T</tt> or possibly <tt>const
      T</tt></td>
    </tr>
  </table>

  <h3>Definitions</h3>

  <h3>Valid expressions</h3>

  <table border summary="">
    <tr>
      <th>Name</th>

      <th>Expression</th>

      <th>Return type</th>

      <th>Semantics</th>
    </tr>

    <tr>
      <td valign="top">Assignment</td>

      <td valign="top"><tt>t = u</tt></td>

      <td valign="top"><tt>T&amp;</tt></td>

      <td valign="top"><tt>t</tt> is equivalent to <tt>u</tt></td>
    </tr>
  </table>

  <h3>Models</h3>

  <ul>
    <li><tt>int</tt></li>

    <li><tt>std::pair</tt></li>
  </ul>

  <h3>See also</h3>

  <p><a href=
  "http://www.sgi.com/tech/stl/DefaultConstructible.html">DefaultConstructible</a>
  and <a href="./CopyConstructible.html">CopyConstructible</a><br></p>
  <hr>

  <p><a href="http://validator.w3.org/check?uri=referer"><img border="0" src=
  "http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional"
  height="31" width="88"></a></p>

  <p>Revised 
  <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan -->05 December, 2006<!--webbot bot="Timestamp" endspan i-checksum="38516" --></p>

  <table summary="">
    <tr valign="top">
      <td nowrap><i>Copyright &copy; 2000</i></td>

      <td><i><a href="http://www.lsc.nd.edu/~jsiek">Jeremy Siek</a>, Univ.of
      Notre Dame (<a href=
      "mailto:jsiek@lsc.nd.edu">jsiek@lsc.nd.edu</a>)</i></td>
    </tr>
  </table>

  <p><i>Distributed under the Boost Software License, Version 1.0. (See
  accompanying file <a href="../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
  copy at <a href=
  "http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>)</i></p>
</body>
</html>