mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 10:24:00 +00:00
117 lines
2.1 KiB
HTML
117 lines
2.1 KiB
HTML
<HTML>
|
|
<!--
|
|
-- Copyright (c) Jeremy Siek 2000
|
|
--
|
|
-- Permission to use, copy, modify, distribute and sell this software
|
|
-- and its documentation for any purpose is hereby granted without fee,
|
|
-- provided that the above copyright notice appears in all copies and
|
|
-- that both that copyright notice and this permission notice appear
|
|
-- in supporting documentation. Silicon Graphics makes no
|
|
-- representations about the suitability of this software for any
|
|
-- purpose. It is provided "as is" without express or implied warranty.
|
|
-->
|
|
<Head>
|
|
<Title>Assignable</Title>
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
|
|
ALINK="#ff0000">
|
|
<IMG SRC="../../c++boost.gif"
|
|
ALT="C++ Boost" width="277" height="86">
|
|
<!--end header-->
|
|
<BR Clear>
|
|
<H1>Assignable</H1>
|
|
|
|
<h3>Description</h3>
|
|
A type is Assignable if it is possible to assign one object of the type
|
|
to another object of that type.
|
|
|
|
|
|
<h3>Notation</h3>
|
|
<Table>
|
|
<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>
|
|
<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&</tt>
|
|
</TD>
|
|
<TD VAlign=top>
|
|
<tt>t</tt> is equivalent to <tt>u</tt>
|
|
</TD>
|
|
</TR>
|
|
|
|
</table>
|
|
|
|
|
|
</table>
|
|
<h3>Models</h3>
|
|
|
|
<UL>
|
|
<LI><tt>int</tt>
|
|
<LI><tt>std::pair</tt>
|
|
</UL>
|
|
|
|
<h3>See also</h3>
|
|
<a href="http://www.sgi.com/tech/stl/DefaultConstructible.html">DefaultConstructible</A>
|
|
and
|
|
<A href="./CopyConstructible.html">CopyConstructible</A>
|
|
|
|
<br>
|
|
<HR>
|
|
<TABLE>
|
|
<TR valign=top>
|
|
<TD nowrap>Copyright © 2000</TD><TD>
|
|
<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>)
|
|
</TD></TR></TABLE>
|
|
|
|
</BODY>
|
|
</HTML>
|