1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>pop_back</title> 5<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.2"> 8<link rel="up" href="../functions.html" title="Functions"> 9<link rel="prev" href="zip.html" title="zip"> 10<link rel="next" href="pop_front.html" title="pop_front"> 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="zip.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.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="pop_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h5 class="title"> 27<a name="fusion.algorithm.transformation.functions.pop_back"></a><a class="link" href="pop_back.html" title="pop_back">pop_back</a> 28</h5></div></div></div> 29<h6> 30<a name="fusion.algorithm.transformation.functions.pop_back.h0"></a> 31 <span class="phrase"><a name="fusion.algorithm.transformation.functions.pop_back.description"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.description">Description</a> 32 </h6> 33<p> 34 Returns a new sequence, with the last element of the original removed. 35 </p> 36<h6> 37<a name="fusion.algorithm.transformation.functions.pop_back.h1"></a> 38 <span class="phrase"><a name="fusion.algorithm.transformation.functions.pop_back.synopsis"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.synopsis">Synopsis</a> 39 </h6> 40<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> 41 <span class="keyword">typename</span> <span class="identifier">Sequence</span> 42 <span class="special">></span> 43<span class="keyword">typename</span> <a class="link" href="../metafunctions/pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">pop_back</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span> 44</pre> 45<div class="table"> 46<a name="fusion.algorithm.transformation.functions.pop_back.t0"></a><p class="title"><b>Table 1.82. Parameters</b></p> 47<div class="table-contents"><table class="table" summary="Parameters"> 48<colgroup> 49<col> 50<col> 51<col> 52</colgroup> 53<thead><tr> 54<th> 55 <p> 56 Parameter 57 </p> 58 </th> 59<th> 60 <p> 61 Requirement 62 </p> 63 </th> 64<th> 65 <p> 66 Description 67 </p> 68 </th> 69</tr></thead> 70<tbody><tr> 71<td> 72 <p> 73 <code class="computeroutput"><span class="identifier">seq</span></code> 74 </p> 75 </td> 76<td> 77 <p> 78 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward 79 Sequence</a> 80 </p> 81 </td> 82<td> 83 <p> 84 Operation's argument 85 </p> 86 </td> 87</tr></tbody> 88</table></div> 89</div> 90<br class="table-break"><h6> 91<a name="fusion.algorithm.transformation.functions.pop_back.h2"></a> 92 <span class="phrase"><a name="fusion.algorithm.transformation.functions.pop_back.expression_semantics"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.expression_semantics">Expression 93 Semantics</a> 94 </h6> 95<pre class="programlisting"><a class="link" href="pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">pop_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> 96</pre> 97<p> 98 <span class="bold"><strong>Return type</strong></span>: 99 </p> 100<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 101<li class="listitem"> 102 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward 103 Sequence</a>. 104 </li> 105<li class="listitem"> 106 A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative 107 Sequence</a> if <code class="computeroutput"><span class="identifier">seq</span></code> 108 implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative 109 Sequence</a> model. 110 </li> 111</ul></div> 112<p> 113 <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing 114 all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, 115 except the last element. The elements in the new sequence are in the 116 same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>. 117 </p> 118<h6> 119<a name="fusion.algorithm.transformation.functions.pop_back.h3"></a> 120 <span class="phrase"><a name="fusion.algorithm.transformation.functions.pop_back.complexity"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.complexity">Complexity</a> 121 </h6> 122<p> 123 Constant. Returns a view which is lazily evaluated. 124 </p> 125<h6> 126<a name="fusion.algorithm.transformation.functions.pop_back.h4"></a> 127 <span class="phrase"><a name="fusion.algorithm.transformation.functions.pop_back.header"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.header">Header</a> 128 </h6> 129<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">pop_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> 130<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">pop_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> 131</pre> 132<h6> 133<a name="fusion.algorithm.transformation.functions.pop_back.h5"></a> 134 <span class="phrase"><a name="fusion.algorithm.transformation.functions.pop_back.example"></a></span><a class="link" href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.example">Example</a> 135 </h6> 136<pre class="programlisting"><span class="identifier">assert</span><span class="special">(</span><a class="link" href="pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">pop_back</span></code></a><span class="special">(</span><a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a class="link" href="../../../container/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">));</span> 137</pre> 138</div> 139<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 140<td align="left"></td> 141<td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman, 142 Dan Marsden, Tobias Schwinger<p> 143 Distributed under the Boost Software License, Version 1.0. (See accompanying 144 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>) 145 </p> 146</div></td> 147</tr></table> 148<hr> 149<div class="spirit-nav"> 150<a accesskey="p" href="zip.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.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="pop_front.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 151</div> 152</body> 153</html> 154