Imported Upstream version 1.57.0
[platform/upstream/boost.git] / doc / html / boost / xpressive / op / dynamic_cast_.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Struct template dynamic_cast_</title>
5 <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp" title="Header &lt;boost/xpressive/regex_actions.hpp&gt;">
9 <link rel="prev" href="static_cast_.html" title="Struct template static_cast_">
10 <link rel="next" href="const_cast_.html" title="Struct template const_cast_">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="static_cast_.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="const_cast_.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry">
26 <a name="boost.xpressive.op.dynamic_cast_"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Struct template dynamic_cast_</span></h2>
29 <p>boost::xpressive::op::dynamic_cast_ &#8212; <code class="computeroutput"><a class="link" href="dynamic_cast_.html" title="Struct template dynamic_cast_">dynamic_cast_</a>&lt;&gt;</code> is a PolymorphicFunctionObject for dynamically casting a parameter to a different type. </p>
30 </div>
31 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp" title="Header &lt;boost/xpressive/regex_actions.hpp&gt;">boost/xpressive/regex_actions.hpp</a>&gt;
33
34 </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> 
35 <span class="keyword">struct</span> <a class="link" href="dynamic_cast_.html" title="Struct template dynamic_cast_">dynamic_cast_</a> <span class="special">{</span>
36   <span class="comment">// types</span>
37   <span class="keyword">typedef</span> <span class="identifier">T</span> <a name="boost.xpressive.op.dynamic_cast_.result_type"></a><span class="identifier">result_type</span><span class="special">;</span>
38
39   <span class="comment">// <a class="link" href="dynamic_cast_.html#idp355541232-bb">public member functions</a></span>
40   <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Value<span class="special">&gt;</span> <span class="identifier">T</span> <a class="link" href="dynamic_cast_.html#idp355541792-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">Value</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
41 <span class="special">}</span><span class="special">;</span></pre></div>
42 <div class="refsect1">
43 <a name="idp533184880"></a><h2>Description</h2>
44 <p>
45 </p>
46 <div class="refsect2">
47 <a name="idp533185552"></a><h3>Template Parameters</h3>
48 <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
49 <pre class="literallayout"><span class="keyword">typename</span> T</pre>
50 <p>The type to which to dynamically cast the parameter. </p>
51 </li></ol></div>
52 </div>
53 <div class="refsect2">
54 <a name="idp533188704"></a><h3>
55 <a name="idp355541232-bb"></a><code class="computeroutput">dynamic_cast_</code> public member functions</h3>
56 <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
57 <pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Value<span class="special">&gt;</span> <span class="identifier">T</span> <a name="idp355541792-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">Value</span> <span class="keyword">const</span> <span class="special">&amp;</span> val<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
58 <p>
59
60 </p>
61 <div class="variablelist"><table border="0" class="variablelist compact">
62 <colgroup>
63 <col align="left" valign="top">
64 <col>
65 </colgroup>
66 <tbody>
67 <tr>
68 <td><p><span class="term">Parameters:</span></p></td>
69 <td><div class="variablelist"><table border="0" class="variablelist compact">
70 <colgroup>
71 <col align="left" valign="top">
72 <col>
73 </colgroup>
74 <tbody><tr>
75 <td><p><span class="term"><code class="computeroutput">val</code></span></p></td>
76 <td><p>The value to dynamically cast. </p></td>
77 </tr></tbody>
78 </table></div></td>
79 </tr>
80 <tr>
81 <td><p><span class="term">Returns:</span></p></td>
82 <td><p><code class="computeroutput">dynamic_cast&lt;T&gt;(val)</code> </p></td>
83 </tr>
84 </tbody>
85 </table></div>
86 </li></ol></div>
87 </div>
88 </div>
89 </div>
90 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
91 <td align="left"></td>
92 <td align="right"><div class="copyright-footer">Copyright &#169; 2007 Eric Niebler<p>
93         Distributed under the Boost Software License, Version 1.0. (See accompanying
94         file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
95       </p>
96 </div></td>
97 </tr></table>
98 <hr>
99 <div class="spirit-nav">
100 <a accesskey="p" href="static_cast_.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="const_cast_.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
101 </div>
102 </body>
103 </html>