From 36843ccdba25f698a5e6f1d3de74529003d1c902 Mon Sep 17 00:00:00 2001
From: Nathan Ridge
Last revised: January 02, 2013 at 23:39:56 GMT |
+Last revised: January 03, 2013 at 00:57:19 GMT |
indexed
),
- then there is no need for a variable. Instead, give the tag type
- a constructor that takes the arguments (and store those arguments
- in the tag object). A usage of the adaptor will then involve construction
- of an object of the tag type.
diff --git a/doc/html/range/reference/extending/method_3/method_3_2.html b/doc/html/range/reference/extending/method_3/method_3_2.html
index 829179a..e21cd5f 100644
--- a/doc/html/range/reference/extending/method_3/method_3_2.html
+++ b/doc/html/range/reference/extending/method_3/method_3_2.html
@@ -80,15 +80,8 @@
- The holder combines multiple parameters into one that can be passed as
- the right operand of operator|()
.
-
-
+ the RangeAdaptor. The holder combines multiple parameters into one + that can be passed as the right operand ofoperator|()
.
template<typename T> class replace_holder : public boost::range_detail::holder2<T> { @@ -100,23 +93,15 @@ void operator=(const replace_holder&); };-
-
--
static boost::range_detail::forwarder2<replace_holder> replaced = boost::range_detail::forwarder2<replace_holder>();-
-
-operator|
- -
template<typename SinglePassRange> inline replace_range<SinglePassRange> operator|(SinglePassRange& rng, @@ -133,8 +118,8 @@ return replace_range<const SinglePassRange>(rng, f.val1, f.val2); }-
-
+ +diff --git a/doc/reference/extending.qbk b/doc/reference/extending.qbk index a4657a2..46652d6 100644 --- a/doc/reference/extending.qbk +++ b/doc/reference/extending.qbk @@ -225,10 +225,6 @@ namespace const detail::reverse_forwarder reversed = detail::reverse_forwarder(); } `` -Note that this last step only applies if the adaptor takes no arguments. If the adaptor takes arguments -(such as `indexed`), then there is no need for a variable. Instead, give the tag type a -constructor that takes the arguments (and store those arguments in the tag object). A usage -of the adaptor will then involve construction of an object of the tag type. [endsect] @@ -285,9 +281,7 @@ public: `` # Implement a holder class to hold the arguments required to construct the RangeAdaptor. - The holder combines multiple parameters into one that can be passed as the right operand of `operator|()`. - `` template |