1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/docs/libs/algorithm/index.html

387 lines
14 KiB
HTML
Raw Normal View History

2013-08-30 02:14:14 +00:00
2013-08-15 09:29:43 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2013-08-30 02:14:14 +00:00
2013-08-15 09:29:43 +00:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2013-09-04 07:06:44 +00:00
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-43764535-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
2013-08-30 02:14:14 +00:00
<title>Sprout.Algorithm &mdash; Sprout 1.0 documentation</title>
2013-08-30 05:02:02 +00:00
<link rel="stylesheet" href="../../_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
2013-08-30 02:14:14 +00:00
2013-08-15 09:29:43 +00:00
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
2013-08-30 05:02:02 +00:00
URL_ROOT: '../../',
2013-08-15 09:29:43 +00:00
VERSION: '1.0',
2013-08-30 02:14:14 +00:00
COLLAPSE_INDEX: false,
2013-08-15 09:29:43 +00:00
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
2013-08-30 05:02:02 +00:00
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="Sprout 1.0 documentation" href="../../index.html" />
<link rel="up" title="Libraries" href="../index.html" />
2013-08-15 09:29:43 +00:00
<link rel="next" title="all_of" href="all_of.html" />
<link rel="prev" title="hash_value" href="../array/array/hash_value.html" />
2013-08-15 09:29:43 +00:00
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
2013-08-30 05:02:02 +00:00
<a href="../../genindex.html" title="General Index"
2013-08-15 09:29:43 +00:00
accesskey="I">index</a></li>
<li class="right" >
<a href="all_of.html" title="all_of"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="../array/array/hash_value.html" title="hash_value"
2013-08-15 09:29:43 +00:00
accesskey="P">previous</a> |</li>
2013-08-30 05:02:02 +00:00
<li><a href="../../index.html">Sprout 1.0 documentation</a> &raquo;</li>
<li><a href="../index.html" accesskey="U">Libraries</a> &raquo;</li>
2013-08-15 09:29:43 +00:00
</ul>
2013-08-25 15:09:33 +00:00
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
2013-08-30 05:02:02 +00:00
<h3><a href="../../index.html">Table Of Contents</a></h3>
2013-08-30 02:14:14 +00:00
<ul>
<li><a class="reference internal" href="#">Sprout.Algorithm</a><ul>
<li><a class="reference internal" href="#non-modifying-sequence-operations">Non-modifying sequence operations</a><ul>
<li><a class="reference internal" href="#sorting">Sorting</a></li>
<li><a class="reference internal" href="#binary-search">Binary search</a></li>
<li><a class="reference internal" href="#heap-operations">Heap operations</a></li>
<li><a class="reference internal" href="#minimum-and-maximum">Minimum and maximum</a></li>
<li><a class="reference internal" href="#lexicographical-comparison">Lexicographical comparison</a></li>
<li><a class="reference internal" href="#clamp-algorithm">Clamp algorithm</a></li>
<li><a class="reference internal" href="#header">Header</a></li>
2013-08-25 15:09:33 +00:00
</ul>
</li>
</ul>
</li>
</ul>
2013-08-30 02:14:14 +00:00
<h4>Previous topic</h4>
<p class="topless"><a href="../array/array/hash_value.html"
title="previous chapter">hash_value</a></p>
2013-08-30 02:14:14 +00:00
<h4>Next topic</h4>
<p class="topless"><a href="all_of.html"
title="next chapter">all_of</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
2013-08-30 05:02:02 +00:00
<li><a href="../../_sources/libs/algorithm/index.txt"
2013-08-30 02:14:14 +00:00
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
2013-08-30 05:02:02 +00:00
<form class="search" action="../../search.html" method="get">
2013-08-30 02:14:14 +00:00
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
2013-08-25 15:09:33 +00:00
</div>
</div>
2013-08-15 09:29:43 +00:00
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="id1">
<h1>Sprout.Algorithm<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h1>
2013-08-30 02:14:14 +00:00
<div class="toctree-wrapper compound">
</div>
2013-08-15 09:29:43 +00:00
<div class="section" id="non-modifying-sequence-operations">
<h2>Non-modifying sequence operations<a class="headerlink" href="#non-modifying-sequence-operations" title="Permalink to this headline"></a></h2>
2013-08-25 14:14:03 +00:00
<table border="1" class="docutils">
<colgroup>
<col width="34%" />
<col width="66%" />
</colgroup>
<thead valign="bottom">
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><th class="head">function</th>
2013-08-25 14:14:03 +00:00
<th class="head">&nbsp;</th>
</tr>
</thead>
<tbody valign="top">
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="all_of.html"><em>all_of</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="all_of_equal.html"><em>all_of_equal</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="any_of.html"><em>any_of</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="any_of_equal.html"><em>any_of_equal</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="none_of.html"><em>none_of</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="none_of_equal.html"><em>none_of_equal</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="one_of.html"><em>one_of</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="one_of_equal.html"><em>one_of_equal</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="find.html"><em>find</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="find_if.html"><em>find_if</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="find_if_not.html"><em>find_if_not</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="find_end.html"><em>find_end</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="find_first_of.html"><em>find_first_of</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="adjacent_find.html"><em>adjacent_find</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="count.html"><em>count</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="count_if.html"><em>count_if</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="mismatch.html"><em>mismatch</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="equal.html"><em>equal</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="is_permutation.html"><em>is_permutation</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="search.html"><em>search</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="search_n.html"><em>search_n</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
</tbody>
</table>
2013-08-19 14:55:46 +00:00
<div class="section" id="sorting">
<h3>Sorting<a class="headerlink" href="#sorting" title="Permalink to this headline"></a></h3>
2013-08-25 14:14:03 +00:00
<table border="1" class="docutils">
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<thead valign="bottom">
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><th class="head">function</th>
2013-08-25 14:14:03 +00:00
<th class="head">&nbsp;</th>
</tr>
</thead>
<tbody valign="top">
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="is_sorted.html"><em>is_sorted</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="is_sorted_until.html"><em>is_sorted_until</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="is_increasing.html"><em>is_increasing</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="is_decreasing.html"><em>is_decreasing</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="is_strictly_increasing.html"><em>is_strictly_increasing</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="is_strictly_decreasing.html"><em>is_strictly_decreasing</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
</tbody>
</table>
2013-08-19 14:55:46 +00:00
</div>
<div class="section" id="binary-search">
<h3>Binary search<a class="headerlink" href="#binary-search" title="Permalink to this headline"></a></h3>
2013-08-25 14:14:03 +00:00
<table border="1" class="docutils">
<colgroup>
<col width="34%" />
<col width="66%" />
</colgroup>
<thead valign="bottom">
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><th class="head">function</th>
2013-08-25 14:14:03 +00:00
<th class="head">&nbsp;</th>
</tr>
</thead>
<tbody valign="top">
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="lower_bound.html"><em>lower_bound</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="upper_bound.html"><em>upper_bound</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="equal_range.html"><em>equal_range</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="binary_search.html"><em>binary_search</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
</tbody>
</table>
2013-08-19 14:55:46 +00:00
</div>
<div class="section" id="heap-operations">
<h3>Heap operations<a class="headerlink" href="#heap-operations" title="Permalink to this headline"></a></h3>
2013-08-25 14:14:03 +00:00
<table border="1" class="docutils">
<colgroup>
<col width="34%" />
<col width="66%" />
</colgroup>
<thead valign="bottom">
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><th class="head">function</th>
2013-08-25 14:14:03 +00:00
<th class="head">&nbsp;</th>
</tr>
</thead>
<tbody valign="top">
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="is_heap.html"><em>is_heap</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="is_heap_until.html"><em>is_heap_until</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
</tbody>
</table>
2013-08-19 14:55:46 +00:00
</div>
<div class="section" id="minimum-and-maximum">
<h3>Minimum and maximum<a class="headerlink" href="#minimum-and-maximum" title="Permalink to this headline"></a></h3>
2013-08-25 14:14:03 +00:00
<table border="1" class="docutils">
<colgroup>
<col width="34%" />
<col width="66%" />
</colgroup>
<thead valign="bottom">
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><th class="head">function</th>
2013-08-25 14:14:03 +00:00
<th class="head">&nbsp;</th>
</tr>
</thead>
<tbody valign="top">
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="min.html"><em>min</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="max.html"><em>max</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="minmax.html"><em>minmax</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="min_element.html"><em>min_element</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="max_element.html"><em>max_element</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="minmax_element.html"><em>minmax_element</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
</tbody>
</table>
2013-08-19 14:55:46 +00:00
</div>
<div class="section" id="lexicographical-comparison">
<h3>Lexicographical comparison<a class="headerlink" href="#lexicographical-comparison" title="Permalink to this headline"></a></h3>
2013-08-25 14:14:03 +00:00
<table border="1" class="docutils">
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<thead valign="bottom">
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><th class="head">function</th>
2013-08-25 14:14:03 +00:00
<th class="head">&nbsp;</th>
</tr>
</thead>
<tbody valign="top">
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="lexicographical_compare.html"><em>lexicographical_compare</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><td><a class="reference internal" href="tristate_lexicographical_compare.html"><em>tristate_lexicographical_compare</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
</tbody>
</table>
2013-08-19 14:55:46 +00:00
</div>
<div class="section" id="clamp-algorithm">
<h3>Clamp algorithm<a class="headerlink" href="#clamp-algorithm" title="Permalink to this headline"></a></h3>
2013-08-25 14:14:03 +00:00
<table border="1" class="docutils">
<colgroup>
<col width="34%" />
<col width="66%" />
</colgroup>
<thead valign="bottom">
2013-08-30 02:14:14 +00:00
<tr class="row-odd"><th class="head">function</th>
2013-08-25 14:14:03 +00:00
<th class="head">&nbsp;</th>
</tr>
</thead>
<tbody valign="top">
2013-08-30 02:14:14 +00:00
<tr class="row-even"><td><a class="reference internal" href="clamp.html"><em>clamp</em></a></td>
2013-08-25 14:14:03 +00:00
<td>&nbsp;</td>
</tr>
</tbody>
</table>
2013-08-19 14:55:46 +00:00
</div>
2013-08-16 09:15:52 +00:00
<div class="section" id="header">
<h3>Header<a class="headerlink" href="#header" title="Permalink to this headline"></a></h3>
<p><tt class="docutils literal"><span class="pre">sprout/algorithm.hpp</span></tt></p>
</div>
2013-08-15 09:29:43 +00:00
</div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
2013-08-30 05:02:02 +00:00
<a href="../../genindex.html" title="General Index"
2013-08-15 09:29:43 +00:00
>index</a></li>
<li class="right" >
<a href="all_of.html" title="all_of"
>next</a> |</li>
<li class="right" >
<a href="../array/array/hash_value.html" title="hash_value"
2013-08-15 09:29:43 +00:00
>previous</a> |</li>
2013-08-30 05:02:02 +00:00
<li><a href="../../index.html">Sprout 1.0 documentation</a> &raquo;</li>
<li><a href="../index.html" >Libraries</a> &raquo;</li>
2013-08-15 09:29:43 +00:00
</ul>
</div>
<div class="footer">
2013-08-30 02:14:14 +00:00
&copy; Copyright 2013, Bolero MURAKAMI.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
2013-08-15 09:29:43 +00:00
</div>
</body>
</html>