diff --git a/doc/html/index.html b/doc/html/index.html
index 0bcae2c..b37d1e2 100644
--- a/doc/html/index.html
+++ b/doc/html/index.html
@@ -147,7 +147,7 @@
-Last revised: January 03, 2013 at 01:05:23 GMT |
+Last revised: January 03, 2013 at 23:22:09 GMT |
|
diff --git a/doc/html/range/reference/adaptors/reference/filtered.html b/doc/html/range/reference/adaptors/reference/filtered.html
index 5d45709..1930ef4 100644
--- a/doc/html/range/reference/adaptors/reference/filtered.html
+++ b/doc/html/range/reference/adaptors/reference/filtered.html
@@ -132,6 +132,8 @@
boost::copy(
input | filtered(is_even()),
std::ostream_iterator<int>(std::cout, ","));
+
+ return 0;
}
diff --git a/doc/html/range/reference/adaptors/reference/indexed.html b/doc/html/range/reference/adaptors/reference/indexed.html
index a232c05..1dd722a 100644
--- a/doc/html/range/reference/adaptors/reference/indexed.html
+++ b/doc/html/range/reference/adaptors/reference/indexed.html
@@ -124,27 +124,6 @@
display_element_and_index(boost::begin(rng), boost::end(rng));
}
-template<class Iterator1, class Iterator2>
-void check_element_and_index(
- Iterator1 test_first,
- Iterator1 test_last,
- Iterator2 reference_first,
- Iterator2 reference_last)
-{
- BOOST_CHECK_EQUAL( std::distance(test_first, test_last),
- std::distance(reference_first, reference_last) );
-
- int reference_index = 0;
-
- Iterator1 test_it = test_first;
- Iterator2 reference_it = reference_first;
- for (; test_it != test_last; ++test_it, ++reference_it, ++reference_index)
- {
- BOOST_CHECK_EQUAL( *test_it, *reference_it );
- BOOST_CHECK_EQUAL( test_it.index(), reference_index );
- }
-}
-
int main(int argc, const char* argv[])
{
using namespace boost::assign;
diff --git a/doc/html/range/reference/adaptors/reference/reversed.html b/doc/html/range/reference/adaptors/reference/reversed.html
index 1db2af4..fa07854 100644
--- a/doc/html/range/reference/adaptors/reference/reversed.html
+++ b/doc/html/range/reference/adaptors/reference/reversed.html
@@ -104,7 +104,7 @@
#include <iostream>
#include <vector>
-void reversed_example_test()
+int main(int argc, const char* argv[])
{
using namespace boost::adaptors;
using namespace boost::assign;
diff --git a/doc/html/range/reference/adaptors/reference/uniqued.html b/doc/html/range/reference/adaptors/reference/uniqued.html
index 2ef82e0..2f2a430 100644
--- a/doc/html/range/reference/adaptors/reference/uniqued.html
+++ b/doc/html/range/reference/adaptors/reference/uniqued.html
@@ -109,7 +109,7 @@
#include <iostream>
#include <vector>
-void uniqued_example_test()
+int main(int argc, const char* argv[])
{
using namespace boost::assign;
using namespace boost::adaptors;
@@ -120,6 +120,8 @@
boost::copy(
input | uniqued,
std::ostream_iterator<int>(std::cout, ","));
+
+ return 0;
}
diff --git a/doc/reference/adaptors/adjacent_filtered.qbk b/doc/reference/adaptors/adjacent_filtered.qbk
index a15f992..076b691 100644
--- a/doc/reference/adaptors/adjacent_filtered.qbk
+++ b/doc/reference/adaptors/adjacent_filtered.qbk
@@ -19,30 +19,8 @@
* [*Returned Range Category:] The minimum of the range category of `rng` and __forward_range__
[section:adjacent_filtered_example adjacent_filtered example]
-``
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-int main(int argc, const char* argv[])
-{
- using namespace boost::assign;
- using namespace boost::adaptors;
-
- std::vector input;
- input += 1,1,2,2,2,3,4,5,6;
-
- boost::copy(
- input | adjacent_filtered(std::not_equal_to()),
- std::ostream_iterator(std::cout, ","));
-
- return 0;
-}
-``
+[import ../../../test/adaptor_test/adjacent_filtered_example.cpp]
+[adjacent_filtered_example]
[endsect]
This would produce the output:
diff --git a/doc/reference/adaptors/copied.qbk b/doc/reference/adaptors/copied.qbk
index 69ee46d..e38bf26 100644
--- a/doc/reference/adaptors/copied.qbk
+++ b/doc/reference/adaptors/copied.qbk
@@ -17,29 +17,8 @@
* [*Returned Range Category:] __random_access_range__
[section:copied_example copied example]
-``
-#include
-#include
-#include
-#include
-#include
-#include
-
-int main(int argc, const char* argv[])
-{
- using namespace boost::assign;
- using namespace boost::adaptors;
-
- std::vector input;
- input += 1,2,3,4,5,6,7,8,9,10;
-
- boost::copy(
- input | copied(1, 5),
- std::ostream_iterator(std::cout, ","));
-
- return 0;
-}
-``
+[import ../../../test/adaptor_test/copied_example.cpp]
+[copied_example]
[endsect]
This would produce the output:
diff --git a/doc/reference/adaptors/examples/adjacent_filtered.cpp b/doc/reference/adaptors/examples/adjacent_filtered.cpp
deleted file mode 100644
index cc7cd9b..0000000
--- a/doc/reference/adaptors/examples/adjacent_filtered.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// Boost.Range library
-//
-// Copyright Thorsten Ottosen 2003-2004. Use, modification and
-// distribution is subject to the Boost Software License, Version
-// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// For more information, see http://www.boost.org/libs/range/
-//
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-int main(int argc, const char* argv[])
-{
- using namespace boost::assign;
- using namespace boost::adaptors;
-
- std::vector input;
- input += 1,1,2,2,2,3,4,5,6;
-
- boost::copy(
- input | adjacent_filtered(std::not_equal_to()),
- std::ostream_iterator(std::cout, ","));
-
- return 0;
-}
-
diff --git a/doc/reference/adaptors/examples/copied.cpp b/doc/reference/adaptors/examples/copied.cpp
deleted file mode 100644
index 2de46ab..0000000
--- a/doc/reference/adaptors/examples/copied.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-// Boost.Range library
-//
-// Copyright Thorsten Ottosen 2003-2004. Use, modification and
-// distribution is subject to the Boost Software License, Version
-// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// For more information, see http://www.boost.org/libs/range/
-//
-#include
-#include
-#include
-#include
-#include
-#include
-
-int main(int argc, const char* argv[])
-{
- using namespace boost::assign;
- using namespace boost::adaptors;
-
- std::vector input;
- input += 1,2,3,4,5,6,7,8,9,10;
-
- boost::copy(
- input | copied(1, 5),
- std::ostream_iterator(std::cout, ","));
-
- return 0;
-}
-
diff --git a/doc/reference/adaptors/examples/filtered.cpp b/doc/reference/adaptors/examples/filtered.cpp
deleted file mode 100644
index 6471237..0000000
--- a/doc/reference/adaptors/examples/filtered.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-// Boost.Range library
-//
-// Copyright Thorsten Ottosen 2003-2004. Use, modification and
-// distribution is subject to the Boost Software License, Version
-// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// For more information, see http://www.boost.org/libs/range/
-//
-#include
-#include
-#include
-#include
-#include
-#include
-
-struct is_even
-{
- bool operator()(int x) const { return x % 2 == 0; }
-};
-
-int main(int argc, const char* argv[])
-{
- using namespace boost::assign;
- using namespace boost::adaptors;
-
- std::vector input;
- input += 1,2,3,4,5,6,7,8,9;
-
- boost::copy(
- input | filtered(is_even()),
- std::ostream_iterator(std::cout, ","));
-
- return 0;
-}
-
diff --git a/doc/reference/adaptors/examples/indexed.cpp b/doc/reference/adaptors/examples/indexed.cpp
deleted file mode 100644
index bb141e8..0000000
--- a/doc/reference/adaptors/examples/indexed.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// Boost.Range library
-//
-// Copyright Thorsten Ottosen 2003-2004. Use, modification and
-// distribution is subject to the Boost Software License, Version
-// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// For more information, see http://www.boost.org/libs/range/
-//
-#include
-#include
-#include
-#include
-#include
-#include
-
-template
-void display_element_and_index(Iterator first, Iterator last)
-{
- for (Iterator it = first; it != last; ++it)
- {
- std::cout << "Element = " << *it
- << " Index = " << it.index() << std::endl;
- }
-}
-
-template
-void display_element_and_index(const SinglePassRange& rng)
-{
- display_element_and_index(boost::begin(rng), boost::end(rng));
-}
-
-int main(int argc, const char* argv[])
-{
- using namespace boost::assign;
- using namespace boost::adaptors;
-
- std::vector input;
- input += 10,20,30,40,50,60,70,80,90;
-
- display_element_and_index( input | indexed(0) );
-
- return 0;
-}
-
diff --git a/doc/reference/adaptors/examples/map_keys.cpp b/doc/reference/adaptors/examples/map_keys.cpp
deleted file mode 100644
index 006e7e9..0000000
--- a/doc/reference/adaptors/examples/map_keys.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// Boost.Range library
-//
-// Copyright Thorsten Ottosen 2003-2004. Use, modification and
-// distribution is subject to the Boost Software License, Version
-// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// For more information, see http://www.boost.org/libs/range/
-//
-#include
-#include
-#include
-#include
-#include
-#include