Compare commits

..

3 Commits

Author SHA1 Message Date
nobody
e41b8607ae This commit was manufactured by cvs2svn to create tag
'Version_1_23_0'.

[SVN r10562]
2001-07-06 20:31:02 +00:00
Beman Dawes
d5d64df124 Fix broken link
[SVN r10553]
2001-07-06 19:19:45 +00:00
Beman Dawes
0edcfcd5c1 Tuples library causes tie to be deprecated
[SVN r10552]
2001-07-06 19:16:39 +00:00
5 changed files with 28 additions and 24 deletions

View File

@@ -4,8 +4,6 @@
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
// 27 June 2001 Jeremy Siek
// Upated for change in named params.
// 8 Mar 2001 Jeremy Siek
// Initial checkin.
@@ -13,6 +11,9 @@
#include <boost/pending/iterator_tests.hpp>
#include <boost/static_assert.hpp>
class bar { };
void foo(bar) { }
int
main()
{
@@ -25,8 +26,9 @@ main()
{
typedef boost::iterator_adaptor<my_iter, boost::default_iterator_policies,
boost::reference_is<dummyT>,
boost::iterator_category_is<std::input_iterator_tag> > iter_type;
boost::iterator_traits_generator
::reference<dummyT>
::iterator_category<std::input_iterator_tag> > iter_type;
BOOST_STATIC_ASSERT((boost::is_same<iter_type::iterator_category*,
std::input_iterator_tag*>::value));
@@ -40,11 +42,12 @@ main()
{
typedef boost::iterator_adaptor<dummyT*,
boost::default_iterator_policies,
boost::value_type_is<dummyT>,
boost::reference_is<const dummyT&>,
boost::pointer_is<const dummyT*>,
boost::iterator_category_is<std::forward_iterator_tag>,
boost::difference_type_is<std::ptrdiff_t> > adaptor_type;
boost::iterator_traits_generator
::value_type<dummyT>
::reference<const dummyT&>
::pointer<const dummyT*>
::iterator_category<std::forward_iterator_tag>
::difference_type<std::ptrdiff_t> > adaptor_type;
adaptor_type i(array);

View File

@@ -21,8 +21,9 @@ main(int, char*[])
int x[] = { 1, 2, 3, 4, 5, 6, 7, 8 };
typedef std::binder1st< std::multiplies<int> > Function;
typedef boost::transform_iterator_generator<Function, int*
>::type doubling_iterator;
typedef boost::transform_iterator<Function, int*,
boost::iterator<std::random_access_iterator_tag, int>
>::type doubling_iterator;
doubling_iterator i(x, std::bind1st(std::multiplies<int>(), 2)),
i_end(x + sizeof(x)/sizeof(int), std::bind1st(std::multiplies<int>(), 2));

View File

@@ -9,7 +9,6 @@
// See http://www.boost.org for most recent version including documentation.
// Revision History
// 27 June 01 Updated to changes in named parameters.
// 08 Mar 01 Moved indirect and transform tests to separate files.
// (Jeremy Siek)
// 19 Feb 01 Take adavantage of improved iterator_traits to do more tests
@@ -53,7 +52,8 @@
#include <boost/pending/iterator_tests.hpp>
#include <boost/pending/integer_range.hpp>
#include <boost/concept_archetype.hpp>
#include <cstdlib>
#include <stdlib.h>
#include <vector>
#include <deque>
#include <set>
@@ -97,9 +97,6 @@ typedef std::deque<int> storage;
typedef std::deque<int*> pointer_deque;
typedef std::set<storage::iterator> iterator_set;
struct bar { };
void foo(bar) { }
int
main()
{
@@ -309,11 +306,12 @@ main()
#else
typedef boost::iterator_adaptor<boost::forward_iterator_archetype<dummyT>,
boost::default_iterator_policies,
boost::value_type_is<dummyT>,
boost::reference_is<const dummyT&>,
boost::pointer_is<const dummyT*>,
boost::iterator_category_is<std::forward_iterator_tag>,
boost::difference_type_is<std::ptrdiff_t> > adaptor_type;
boost::iterator_traits_generator
::value_type<dummyT>
::reference<const dummyT&>
::pointer<const dummyT*>
::iterator_category<std::forward_iterator_tag>
::difference_type<std::ptrdiff_t> > adaptor_type;
#endif
adaptor_type i(forward_iter);
int zero = 0;

View File

@@ -821,7 +821,7 @@ from previous versions of the header, cannot be used for
<p>The <cite><a href="operators_test.cpp">operators_test.cpp</a></cite>
program demonstrates the use of the arithmetic operator templates, and
can also be used to verify correct operation. Check the <a
href="../compiler_status.htm">compiler status report</a> for the test results
href="../../status/compiler_status.html">compiler status report</a> for the test results
with selected platforms.</p>
<h2><a name="deref">Dereference</a> Operators and Iterator Helpers</h2>
@@ -1010,7 +1010,7 @@ public:
};</pre>
</blockquote>
<p>Check the <a href="../compiler_status.htm">compiler status report</a> for
<p>Check the <a href="../../status/compiler_status.html">compiler status report</a> for
the test results with selected platforms.</p>
<hr>

View File

@@ -23,7 +23,9 @@
<TT>tie</TT>
</H1>
<P>
<h3>
[tie has been deprecated.&nbsp; Its functionality is supplied by the Boost
Tuples Library.]</h3>
<PRE>
template &lt;class A, class B&gt;
tied&lt;A,B&gt; tie(A&amp; a, B&amp; b);