• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Function template spreadsort</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="Boost.Sort">
8<link rel="up" href="../../../header/boost/sort/spreadsort/spreadsort_hpp.html" title="Header &lt;boost/sort/spreadsort/spreadsort.hpp&gt;">
9<link rel="prev" href="spreadso_idm45878543827968.html" title="Function template spreadsort">
10<link rel="next" href="../../../header/boost/sort/spreadsort/string_sort_hpp.html" title="Header &lt;boost/sort/spreadsort/string_sort.hpp&gt;">
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="spreadso_idm45878543827968.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/sort/spreadsort/spreadsort_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="../../../header/boost/sort/spreadsort/string_sort_hpp.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="refentry">
26<a name="boost.sort.spreadsort.spreadso_idm45878543809936"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Function template spreadsort</span></h2>
29<p>boost::sort::spreadsort::spreadsort — Generic <code class="computeroutput">spreadsort</code> variant detects value_type and calls required sort function. </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/sort/spreadsort/spreadsort_hpp.html" title="Header &lt;boost/sort/spreadsort/spreadsort.hpp&gt;">boost/sort/spreadsort/spreadsort.hpp</a>&gt;
33
34</span>
35<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Range<span class="special">&gt;</span> <span class="keyword">void</span> <span class="identifier">spreadsort</span><span class="special">(</span><span class="identifier">Range</span> <span class="special">&amp;</span> range<span class="special">)</span><span class="special">;</span></pre></div>
36<div class="refsect1">
37<a name="idm45477844902768"></a><h2>Description</h2>
38<div class="note"><table border="0" summary="Note">
39<tr>
40<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td>
41<th align="left">Note</th>
42</tr>
43<tr><td align="left" valign="top"><p>Sorting other data types requires picking between <code class="computeroutput">integer_sort</code>, <code class="computeroutput">float_sort</code> and <code class="computeroutput">string_sort</code> directly, as <code class="computeroutput">spreadsort</code> won't accept types that don't have the appropriate <code class="computeroutput">type_traits</code>.</p></td></tr>
44</table></div>
45<p>
46
47
48
49</p>
50<div class="variablelist"><table border="0" class="variablelist compact">
51<colgroup>
52<col align="left" valign="top">
53<col>
54</colgroup>
55<tbody>
56<tr>
57<td><p><span class="term">Parameters:</span></p></td>
58<td><div class="variablelist"><table border="0" class="variablelist compact">
59<colgroup>
60<col align="left" valign="top">
61<col>
62</colgroup>
63<tbody><tr>
64<td><p><span class="term"><code class="computeroutput">range</code></span></p></td>
65<td><p>Range [first, last) for sorting.</p></td>
66</tr></tbody>
67</table></div></td>
68</tr>
69<tr>
70<td><p><span class="term">Requires:</span></p></td>
71<td><p>[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) is a valid range. </p></td>
72</tr>
73<tr>
74<td><p><span class="term">Postconditions:</span></p></td>
75<td><p>The elements in the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) are sorted in ascending order. </p></td>
76</tr>
77</tbody>
78</table></div>
79</div>
80</div>
81<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
82<td align="left"></td>
83<td align="right"><div class="copyright-footer">Copyright © 2014-2017 Steven
84      Ross, Francisco Tapia, Orson Peters<p>
85        Distributed under the <a href="http://boost.org/LICENSE_1_0.txt" target="_top">Boost
86        Software License, Version 1.0</a>.
87      </p>
88</div></td>
89</tr></table>
90<hr>
91<div class="spirit-nav">
92<a accesskey="p" href="spreadso_idm45878543827968.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/sort/spreadsort/spreadsort_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="../../../header/boost/sort/spreadsort/string_sort_hpp.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
93</div>
94</body>
95</html>
96