2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-27 06:42:19 +00:00
Files
compute/doc/reference/algorithm/partition_copy.xml
2013-03-02 15:14:17 -05:00

57 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<header name="boost/compute/algorithm/partition_copy.hpp">
<namespace name="boost">
<namespace name="compute">
<!-- boost::compute::partition_copy(first, last, first_true, first_false, predicate, queue) -->
<function name="partition_copy">
<template>
<template-type-parameter name="InputIterator"/>
<template-type-parameter name="OutputIterator1"/>
<template-type-parameter name="OutputIterator2"/>
<template-type-parameter name="UnaryPredicate"/>
</template>
<type>std::pair&lt;OutputIterator1, OutputIterator2&gt;</type>
<parameter name="first">
<paramtype>InputIterator</paramtype>
</parameter>
<parameter name="last">
<paramtype>InputIterator</paramtype>
</parameter>
<parameter name="first_true">
<paramtype>OutputIterator1</paramtype>
</parameter>
<parameter name="first_false">
<paramtype>OutputIterator2</paramtype>
</parameter>
<parameter name="predicate">
<paramtype>UnaryPredicate</paramtype>
</parameter>
<parameter name="queue">
<paramtype>command_queue &amp;</paramtype>
</parameter>
<returns>
A pair of iterators pointing to the ends of the copied ranges.
</returns>
<description>
<para>
Copies all the elements in the range [<code>first</code>,
<code>last</code>) for which <code>predicate</code> returns
<code>true</code> to the range beginning at
<code>first_true</code> and all the elements for which
<code>predicate</code> returns <code>false</code> to the range
beginning at <code>first_false</code>.
</para>
<para>
See also: <functionname>partition()</functionname>
</para>
</description>
</function>
</namespace>
</namespace>
</header>