~ubuntu-branches/debian/sid/boost1.49/sid

« back to all changes in this revision

Viewing changes to doc/html/boost/proto/result_of/as_child.html

  • Committer: Package Import Robot
  • Author(s): Steve M. Robbins
  • Date: 2012-02-26 00:31:44 UTC
  • Revision ID: package-import@ubuntu.com-20120226003144-eaytp12cbf6ubpms
Tags: upstream-1.49.0
ImportĀ upstreamĀ versionĀ 1.49.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
4
<title>Struct template as_child</title>
 
5
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
 
7
<link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
 
8
<link rel="up" href="../../../proto/reference.html#header.boost.proto.traits_hpp" title="Header &lt;boost/proto/traits.hpp&gt;">
 
9
<link rel="prev" href="as_expr.html" title="Struct template as_expr">
 
10
<link rel="next" href="child.html" title="Struct template child">
 
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="as_expr.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../proto/reference.html#header.boost.proto.traits_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="child.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
 
24
</div>
 
25
<div class="refentry">
 
26
<a name="boost.proto.result_of.as_child"></a><div class="titlepage"></div>
 
27
<div class="refnamediv">
 
28
<h2><span class="refentrytitle">Struct template as_child</span></h2>
 
29
<p>boost::proto::result_of::as_child &#8212; A metafunction that computes the return type of the
 
30
            <code class="computeroutput"><a class="link" href="../as_child_id1527575.html" title="Function as_child">proto::as_child</a>()</code> function.</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="../../../proto/reference.html#header.boost.proto.traits_hpp" title="Header &lt;boost/proto/traits.hpp&gt;">boost/proto/traits.hpp</a>&gt;
 
34
 
 
35
</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> <a class="link" href="../../../Domain.html" title="Concept Domain">Domain</a> <span class="special">=</span> <a class="link" href="../default_domain.html" title="Struct default_domain">proto::default_domain</a><span class="special">&gt;</span> 
 
36
<span class="keyword">struct</span> <a class="link" href="as_child.html" title="Struct template as_child">as_child</a> <span class="special">{</span>
 
37
  <span class="comment">// types</span>
 
38
  <span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">Domain</span><span class="special">::</span><span class="keyword">template</span> <span class="identifier">as_child</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">result_type</span> <a name="boost.proto.result_of.as_child.type"></a><span class="identifier">type</span><span class="special">;</span>
 
39
<span class="special">}</span><span class="special">;</span></pre></div>
 
40
<div class="refsect1">
 
41
<a name="id2810460"></a><h2>Description</h2>
 
42
<p>
 
43
              The <code class="computeroutput">proto::result_of::as_child&lt;&gt;</code> metafunction turns types
 
44
              into Proto expression types, if they are not already, in a domain-specific way. It is used by Proto
 
45
              to compute the type of an object to store as a child in another expression node.
 
46
            </p>
 
47
<p>
 
48
              See <code class="computeroutput"><a class="link" href="../domain/as_child.html" title="Struct template as_child">proto::domain::as_child</a>&lt;&gt;</code>
 
49
              for a complete description of the default behavior.
 
50
            </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; 2008 Eric Niebler<p>
 
56
        Distributed under the Boost Software License, Version 1.0. (See accompanying
 
57
        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>)
 
58
      </p>
 
59
</div></td>
 
60
</tr></table>
 
61
<hr>
 
62
<div class="spirit-nav">
 
63
<a accesskey="p" href="as_expr.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../proto/reference.html#header.boost.proto.traits_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="child.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
 
64
</div>
 
65
</body>
 
66
</html>