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 <boost/xpressive/regex_actions.hpp>">
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_">
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>
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>
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_ — <code class="computeroutput"><a class="link" href="dynamic_cast_.html" title="Struct template dynamic_cast_">dynamic_cast_</a><></code> is a PolymorphicFunctionObject for dynamically casting a parameter to a different type. </p>
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: <<a class="link" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp" title="Header <boost/xpressive/regex_actions.hpp>">boost/xpressive/regex_actions.hpp</a>>
34 </span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></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>
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"><</span><span class="keyword">typename</span> Value<span class="special">></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">&</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>
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>
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"><</span><span class="keyword">typename</span> Value<span class="special">></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">&</span> val<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
61 <div class="variablelist"><table border="0" class="variablelist compact">
63 <col align="left" valign="top">
68 <td><p><span class="term">Parameters:</span></p></td>
69 <td><div class="variablelist"><table border="0" class="variablelist compact">
71 <col align="left" valign="top">
75 <td><p><span class="term"><code class="computeroutput">val</code></span></p></td>
76 <td><p>The value to dynamically cast. </p></td>
81 <td><p><span class="term">Returns:</span></p></td>
82 <td><p><code class="computeroutput">dynamic_cast<T>(val)</code> </p></td>
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 © 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>)
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>