📄 badcast.htm
字号:
<html>
<head>
<title>bad_cast</title>
<head>
<body bgcolor="#FFFFFF">
<a name="here"></a>
<img src="badcban.gif">
<pre>
<font size=5>Class Name</font> bad_cast
<font size=5>Header File</font> <typeinfo>
<font size=5>Classification</font> Runtime Object Identification
</pre>
<a href="badcast.htm#crd">Class Relationship Diagram</a><br>
<br>
<a href="badcast.htm#class-descrip">Class Description</a>
<h1>Member Classes</h1>
<p>
None
</p>
<h1>Methods</h1>
<pre>
<a href="badcast.htm#badcast1">bad_cast() throw();</a>
<a href="badcast.htm#badcast2">bad_cast(const bad_cast&) throw();</a>
<a href="badcast.htm#~badcast">~bad_cast() throw();</a>
<a href="badcast.htm#what">virtual const char* what() const throw();</a>
</pre>
<h1>Operators</h1>
<pre>
<a href="badcast.htm#operator=">bad_cast& operator=(const bad_cast&) throw();</a>
</pre>
<hr>
<a name="class-descrip"><h3>Class Description</h3></a>
<p>
The bad_cast class describes an object type thrown as a exception by an invalid
execution of <a href="defines.htm#dynamic-cast">dynamic cast</a> expression.
</a>
<hr>
<pre>
<a name="badcast1">
Method bad_cast()</a>
Access Public
Classification Constructor
Syntax bad_cast() throw();
Parameters None
Returns None
</pre>
<h3>Description</h3>
<p>
This constructor constructs a bad_cast object.
</p>
<hr>
<pre>
<a name="badcast2">
Method bad_cast()</a>
Access Public
Classification Constructor
Syntax bad_cast(const bad_cast& x) throw();
Parameters <em>x</em> is a reference to a the bad_cast object
in which the newly constructed object is a copy.
Returns None
</pre>
<h3>Description</h3>
<p>
This constructor constructs a bad_cast object that is a copy of <em>x</em>.
</p>
<hr>
<pre>
<a name="~badcast">
Method bad_cast()</a>
Access Public
Classification Destructor
Syntax ~bad_cast() throw();
Parameters None
Returns None
</pre>
<h3>Description</h3>
<p>
The destructor destroys a bad_cast object.
</p>
<hr>
<pre>
<a name="what">
Method what()</a>
Access Public
Classification Accessor
Syntax virtual const char* what() const throw();
Parameters None
Returns This method returns a pointer to a message.
</pre>
<h3>Description</h3>
<p>
The what() method returns a message determined by the implementor.
</p>
<hr>
<pre>
<a name="operator=">
Method operator=()</a>
Access Public
Classification Modifier
Syntax bad_cast& operator=(const bad_cast& x) throw();
Parameters <em>x</em> is a reference to a the bad_cast object
in which the newly constructed object is a copy.
Returns This operator returns a pointer to the current object.
</pre>
<h3>Description</h3>
<p>
The assignment operator assigns the bad_cast object <em>x</em> to the current
object.
</p>
<hr>
<a name="crd"><h2>The Class Relationship Diagram for bad_cast</h2></a>
<img src="badcast.gif">
<hr>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -