Imported Upstream version 1.71.0
[platform/upstream/boost.git] / libs / algorithm / doc / html / boost / algorithm / partitio_idm45056135303792.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Function template partition_copy</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="The Boost Algorithm Library">
8 <link rel="up" href="../../header/boost/algorithm/cxx11/partition_copy_hpp.html" title="Header &lt;boost/algorithm/cxx11/partition_copy.hpp&gt;">
9 <link rel="prev" href="../../header/boost/algorithm/cxx11/partition_copy_hpp.html" title="Header &lt;boost/algorithm/cxx11/partition_copy.hpp&gt;">
10 <link rel="next" href="partitio_idm45056135292976.html" title="Function template partition_copy">
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="../../header/boost/algorithm/cxx11/partition_copy_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/algorithm/cxx11/partition_copy_hpp.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="partitio_idm45056135292976.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry">
26 <a name="boost.algorithm.partitio_idm45056135303792"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Function template partition_copy</span></h2>
29 <p>boost::algorithm::partition_copy &#8212; Copies the elements that satisfy the predicate p from the range [first, last) to the range beginning at d_first_true, and copies the elements that do not satisfy p to the range beginning at d_first_false. </p>
30 </div>
31 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32 <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="../../header/boost/algorithm/cxx11/partition_copy_hpp.html" title="Header &lt;boost/algorithm/cxx11/partition_copy.hpp&gt;">boost/algorithm/cxx11/partition_copy.hpp</a>&gt;
33
34 </span>
35 <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> OutputIterator1<span class="special">,</span> 
36          <span class="keyword">typename</span> OutputIterator2<span class="special">,</span> <span class="keyword">typename</span> UnaryPredicate<span class="special">&gt;</span> 
37   <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special">&lt;</span> <span class="identifier">OutputIterator1</span><span class="special">,</span> <span class="identifier">OutputIterator2</span> <span class="special">&gt;</span> 
38   <span class="identifier">partition_copy</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> 
39                  <span class="identifier">OutputIterator1</span> out_true<span class="special">,</span> <span class="identifier">OutputIterator2</span> out_false<span class="special">,</span> 
40                  <span class="identifier">UnaryPredicate</span> p<span class="special">)</span><span class="special">;</span></pre></div>
41 <div class="refsect1">
42 <a name="idm45150195504032"></a><h2>Description</h2>
43 <p>
44 </p>
45 <div class="note"><table border="0" summary="Note">
46 <tr>
47 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/src/images/note.png"></td>
48 <th align="left">Note</th>
49 </tr>
50 <tr><td align="left" valign="top"><p>This function is part of the C++2011 standard library. </p></td></tr>
51 </table></div>
52 <p>
53 </p>
54 <div class="variablelist"><table border="0" class="variablelist compact">
55 <colgroup>
56 <col align="left" valign="top">
57 <col>
58 </colgroup>
59 <tbody><tr>
60 <td><p><span class="term">Parameters:</span></p></td>
61 <td><div class="variablelist"><table border="0" class="variablelist compact">
62 <colgroup>
63 <col align="left" valign="top">
64 <col>
65 </colgroup>
66 <tbody>
67 <tr>
68 <td><p><span class="term"><code class="computeroutput">first</code></span></p></td>
69 <td><p>The start of the input sequence </p></td>
70 </tr>
71 <tr>
72 <td><p><span class="term"><code class="computeroutput">last</code></span></p></td>
73 <td><p>One past the end of the input sequence </p></td>
74 </tr>
75 <tr>
76 <td><p><span class="term"><code class="computeroutput">out_false</code></span></p></td>
77 <td><p>An output iterator to write the elements that do not satisfy the predicate into </p></td>
78 </tr>
79 <tr>
80 <td><p><span class="term"><code class="computeroutput">out_true</code></span></p></td>
81 <td><p>An output iterator to write the elements that satisfy the predicate into </p></td>
82 </tr>
83 <tr>
84 <td><p><span class="term"><code class="computeroutput">p</code></span></p></td>
85 <td><p>A predicate for dividing the elements of the input sequence.</p></td>
86 </tr>
87 </tbody>
88 </table></div></td>
89 </tr></tbody>
90 </table></div>
91 </div>
92 </div>
93 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
94 <td align="left"></td>
95 <td align="right"><div class="copyright-footer">Copyright &#169; 2010-2012 Marshall Clow<p>
96         Distributed under the Boost Software License, Version 1.0. (See accompanying
97         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>)
98       </p>
99 </div></td>
100 </tr></table>
101 <hr>
102 <div class="spirit-nav">
103 <a accesskey="p" href="../../header/boost/algorithm/cxx11/partition_copy_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/algorithm/cxx11/partition_copy_hpp.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="partitio_idm45056135292976.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
104 </div>
105 </body>
106 </html>