3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>push_front</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="Chapter 1. Fusion 2.2">
8 <link rel="up" href="../metafunctions.html" title="Metafunctions">
9 <link rel="prev" href="push_back.html" title="push_back">
10 <link rel="next" href="flatten.html" title="flatten">
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="push_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><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="flatten.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h5 class="title">
27 <a name="fusion.algorithm.transformation.metafunctions.push_front"></a><a class="link" href="push_front.html" title="push_front">push_front</a>
28 </h5></div></div></div>
30 <a name="fusion.algorithm.transformation.metafunctions.push_front.h0"></a>
31 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.push_front.description"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.description">Description</a>
34 Returns the result type of <a class="link" href="../functions/push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">push_front</span></code></a>, given the types
35 of the input sequence and element to push.
38 <a name="fusion.algorithm.transformation.metafunctions.push_front.h1"></a>
39 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.push_front.synopsis"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.synopsis">Synopsis</a>
41 <pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
42 <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
43 <span class="keyword">typename</span> <span class="identifier">T</span>
44 <span class="special">></span>
45 <span class="keyword">struct</span> <span class="identifier">push_front</span>
46 <span class="special">{</span>
47 <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span>
48 <span class="special">};</span>
51 <a name="fusion.algorithm.transformation.metafunctions.push_front.t0"></a><p class="title"><b>Table 1.102. Parameters</b></p>
52 <div class="table-contents"><table class="table" summary="Parameters">
79 <code class="computeroutput"><span class="identifier">Sequence</span></code>
84 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
97 <code class="computeroutput"><span class="identifier">T</span></code>
114 <br class="table-break"><h6>
115 <a name="fusion.algorithm.transformation.metafunctions.push_front.h2"></a>
116 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.push_front.expression_semantics"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.expression_semantics">Expression
119 <pre class="programlisting"><a class="link" href="push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span>
122 <span class="bold"><strong>Return type</strong></span>:
124 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
125 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
129 <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the
130 elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
131 and an element of type <code class="computeroutput"><span class="identifier">T</span></code>
132 added to the beginning.
135 <a name="fusion.algorithm.transformation.metafunctions.push_front.h3"></a>
136 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.push_front.complexity"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.complexity">Complexity</a>
142 <a name="fusion.algorithm.transformation.metafunctions.push_front.h4"></a>
143 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.push_front.header"></a></span><a class="link" href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.header">Header</a>
145 <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
146 <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">push_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
149 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
150 <td align="left"></td>
151 <td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman,
152 Dan Marsden, Tobias Schwinger<p>
153 Distributed under the Boost Software License, Version 1.0. (See accompanying
154 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>)
159 <div class="spirit-nav">
160 <a accesskey="p" href="push_back.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><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="flatten.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>