Imported Upstream version 1.64.0
[platform/upstream/boost.git] / doc / html / boost / static_visitor.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5 <title>Class template static_visitor</title>
6 <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
7 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8 <link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9 <link rel="up" href="../variant/reference.html#header.boost.variant.static_visitor_hpp" title="Header &lt;boost/variant/static_visitor.hpp&gt;">
10 <link rel="prev" href="bad_visit.html" title="Class bad_visit">
11 <link rel="next" href="visitor_ptr_t.html" title="Class template visitor_ptr_t">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table cellpadding="2" width="100%"><tr>
15 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
16 <td align="center"><a href="../../../index.html">Home</a></td>
17 <td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
18 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20 <td align="center"><a href="../../../more/index.htm">More</a></td>
21 </tr></table>
22 <hr>
23 <div class="spirit-nav">
24 <a accesskey="p" href="bad_visit.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../variant/reference.html#header.boost.variant.static_visitor_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="visitor_ptr_t.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
25 </div>
26 <div class="refentry">
27 <a name="boost.static_visitor"></a><div class="titlepage"></div>
28 <div class="refnamediv">
29 <h2><span class="refentrytitle">Class template static_visitor</span></h2>
30 <p>boost::static_visitor &#8212; Convenient base type for static visitors.</p>
31 </div>
32 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
33 <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="../variant/reference.html#header.boost.variant.static_visitor_hpp" title="Header &lt;boost/variant/static_visitor.hpp&gt;">boost/variant/static_visitor.hpp</a>&gt;
34
35 </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ResultType<span class="special">&gt;</span> 
36 <span class="keyword">class</span> <a class="link" href="static_visitor.html" title="Class template static_visitor">static_visitor</a> <span class="special">{</span>
37 <span class="keyword">public</span><span class="special">:</span>
38   <span class="comment">// types</span>
39   <span class="keyword">typedef</span> <span class="identifier">ResultType</span> <a name="boost.static_visitor.result_type"></a><span class="identifier">result_type</span><span class="special">;</span>  <span class="comment">// Exposes result_type member as required by StaticVisitor concept.</span>
40 <span class="special">}</span><span class="special">;</span></pre></div>
41 <div class="refsect1">
42 <a name="idp616958368"></a><h2>Description</h2>
43 <p>Denotes the intent of the deriving class as meeting the
44           requirements of a static visitor of some type. Also exposes the
45           inner type <code class="computeroutput">result_type</code> as required by the
46           <a class="link" href="../variant/reference.html#variant.concepts.static-visitor" title="StaticVisitor"><span class="emphasis"><em>StaticVisitor</em></span></a>
47           concept.</p>
48 <p><span class="bold"><strong>Notes</strong></span>:
49           <code class="computeroutput">static_visitor</code> is intended for use as a base type only
50           and is therefore noninstantiable.</p>
51 </div>
52 </div>
53 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
54 <td align="left"></td>
55 <td align="right"><div class="copyright-footer">Copyright &#169; 2002, 2003 Eric Friedman, Itay Maman<p>Distributed under the Boost Software License, Version 1.0.
56     (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at 
57     <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
58     </p>
59 </div></td>
60 </tr></table>
61 <hr>
62 <div class="spirit-nav">
63 <a accesskey="p" href="bad_visit.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../variant/reference.html#header.boost.variant.static_visitor_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="visitor_ptr_t.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
64 </div>
65 </body>
66 </html>