1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../css/manpage.css" type="text/css" />
7    <title>ResStaticCast</title>
8  </head>
9  <body>
10    <h1><CODE><a href="../../nw/Overview.html">nw</a>::<a href="../../nw/ut/Overview.html">ut</a>::ResStaticCast</CODE> Function</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14template &lt;class TDest, class TSrc&gt;
15TDest ResStaticCast(
16     TSrc res
17);
18</pre>
19    </div>
20    <h2>Template Arguments</h2>
21    <div class="section">
22      <table class="arguments">
23        <thead>
24          <tr>
25            <th>Name</th>
26            <td>Description</td>
27          </tr>
28        </thead>
29        <tr>
30          <th><CODE>TDest</CODE></th>
31          <td>Resource type to cast to.</td>
32        </tr>
33        <tr>
34          <th><CODE>TSrc</CODE></th>
35          <td>Resource type to cast from.</td>
36        </tr> </table>
37    </div>
38    <h2>Arguments</h2>
39    <div class="section">
40      <table class="arguments">
41        <thead>
42          <tr>
43            <td width="15" />
44            <th>Name</th>
45            <td>Description</td>
46          </tr>
47        </thead>
48        <tr>
49          <td>in</td>
50          <th>res</th>
51          <td>Resource to cast from.</td>
52        </tr> </table>
53    </div>
54    <h2>Return Values</h2>
55    <div class="section">Casts the resource accessor as a TDest type and returns the result. </div>
56    <h2>Description</h2>
57    <div class="section">
58      <p>Statically casts one resource-type object to another resource type.</p>
59    </div>
60  <hr><p>CONFIDENTIAL</p></body>
61</html>
62