/usr/share/doc/libcompute-doc/html/boost/compute/merge.html is in libcompute-doc 0.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Function merge</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
<link rel="up" href="../../boost_compute/reference.html#header.boost.compute.algorithm.merge_hpp" title="Header <boost/compute/algorithm/merge.hpp>">
<link rel="prev" href="max_element.html" title="Function max_element">
<link rel="next" href="min_element.html" title="Function min_element">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="max_element.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_compute/reference.html#header.boost.compute.algorithm.merge_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="min_element.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.compute.merge"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function merge</span></h2>
<p>boost::compute::merge</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../boost_compute/reference.html#header.boost.compute.algorithm.merge_hpp" title="Header <boost/compute/algorithm/merge.hpp>">boost/compute/algorithm/merge.hpp</a>>
</span>
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span>
<span class="keyword">typename</span> OutputIterator<span class="special">,</span> <span class="keyword">typename</span> Compare<span class="special">></span>
<span class="identifier">OutputIterator</span>
<span class="identifier">merge</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span> <span class="identifier">InputIterator2</span> first2<span class="special">,</span>
<span class="identifier">InputIterator2</span> last2<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span> <span class="identifier">Compare</span> comp<span class="special">,</span>
<a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span> queue <span class="special">=</span> <span class="identifier">system</span><span class="special">::</span><span class="identifier">default_queue</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span>
<span class="keyword">typename</span> OutputIterator<span class="special">></span>
<span class="identifier">OutputIterator</span>
<span class="identifier">merge</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span> <span class="identifier">InputIterator2</span> first2<span class="special">,</span>
<span class="identifier">InputIterator2</span> last2<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span>
<a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span> queue <span class="special">=</span> <span class="identifier">system</span><span class="special">::</span><span class="identifier">default_queue</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idp84498496"></a><h2>Description</h2>
<p>Merges the sorted values in the range [<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the sorted values in the range [<code class="computeroutput">first2</code>, last2) and stores the result in the range beginning at <code class="computeroutput">result</code>. Values are compared using the <code class="computeroutput">comp</code> function. If no comparision function is given, <code class="computeroutput">less</code> is used.</p>
<p>
</p>
<p><span class="bold"><strong>See Also:</strong></span></p>
<p>inplace_merge() </p>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">comp</code></span></p></td>
<td><p>comparison function (by default <code class="computeroutput">less</code>) </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">first1</code></span></p></td>
<td><p>first element in the first range to merge </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">first2</code></span></p></td>
<td><p>first element in the second range to merge </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">last1</code></span></p></td>
<td><p>last element in the first range to merge </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">last2</code></span></p></td>
<td><p>last element in the second range to merge </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">queue</code></span></p></td>
<td><p>command queue to perform the operation</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">result</code></span></p></td>
<td><p>first element in the result range </p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p><code class="computeroutput">OutputIterator</code> to the end of the result range</p></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2013, 2014 Kyle Lutz<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="max_element.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_compute/reference.html#header.boost.compute.algorithm.merge_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="min_element.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>
|