update the docs
[SVN r17836]
This commit is contained in:
1 parent
747dae9e6c
commit
a69baa5eae
91 files changed
+1213
-501
No files matched your search
@@ -1,14 +1,14 @@
|
||||
<!doctype html public "-//ietf//dtd html//en">
|
||||
<html><head><title>boost::mpl::Reference/upper bound</title>
|
||||
<html><head><title>boost::mpl::upper_bound</title>
|
||||
<link rel="stylesheet" href="../mpl_wiki.css">
|
||||
</head><body bgcolor="white">
|
||||
<h1><a href="../Table_of_Content.html"><img src="../mpl_logo.jpg" alt="[Home]" border=0 align="right"></a>upper_bound</h1><h3>Synopsis</h3>
|
||||
<h1><a href="../Table_of_Contents.html"><img src="../mpl_logo.jpg" alt="[Home]" border=0 align="right"></a>upper_bound</h1><h3>Synopsis</h3>
|
||||
<p>
|
||||
<pre>
|
||||
template<
|
||||
typename Sequence
|
||||
, typename T
|
||||
, typename Pred
|
||||
, typename Pred = <a href="../Reference/less.html">less</a><_1,_2>
|
||||
>
|
||||
struct upper_bound
|
||||
{
|
||||
@@ -23,7 +23,7 @@ Returns the last position in the sorted <code>Sequence</code> where <code>T</cod
|
||||
<h3>Definition</h3>
|
||||
<p>
|
||||
<pre>
|
||||
#include "<a href="../../../../../\boost/mpl/upper_bound.hpp">boost/mpl/upper_bound.hpp</a>"
|
||||
#include "<a href="../../../../../boost/mpl/upper_bound.hpp">boost/mpl/upper_bound.hpp</a>"
|
||||
</pre>
|
||||
<p>
|
||||
<h3>Parameters</h3>
|
||||
@@ -49,12 +49,13 @@ The number of comparisons is logarithmic: at most <code>log(size<Sequence>
|
||||
<p>
|
||||
<pre>
|
||||
typedef <a href="../Reference/list_c.html">list_c</a><int,1,2,3,3,3,5,8> numbers;
|
||||
typedef upper_bound< numbers, int_c<3>, <a href="../Reference/less.html">less</a><_,_> >::type iter;
|
||||
typedef upper_bound< numbers, int_<3> >::type iter;
|
||||
BOOST_STATIC_ASSERT((<a href="../Reference/distance.html">distance</a>< <a href="../Reference/begin.html">begin</a><numbers>::type,iter >::type::value == 5));
|
||||
BOOST_STATIC_ASSERT(iter::type::value == 5);
|
||||
</pre>
|
||||
<p>
|
||||
<h3>See also</h3>
|
||||
<p>
|
||||
<a href="../Algorithms.html">Algorithms</a>, <code><a href="../Reference/sort.html">sort</a></code>, <code><a href="../Reference/lower_bound.html">lower_bound</a></code>
|
||||
<a href="../Algorithms.html">Algorithms</a>, <code>sort</code>, <code><a href="../Reference/lower_bound.html">lower_bound</a></code>
|
||||
<p><hr>
|
||||
<a href="../Table_of_Content.html">Table of Content</a> | <a href="../Reference.html">Reference</a><br>Last edited July 17, 2002 6:30 pm</body></html>
|
||||
<a href="../Table_of_Contents.html">Table of Contents</a><br>Last edited March 10, 2003 5:44 am</body></html>
|
||||
Reference in new issue
Block a user