diff --git a/doc/intro.html b/doc/intro.html
index 0161f42..444b4ca 100755
--- a/doc/intro.html
+++ b/doc/intro.html
@@ -87,7 +87,7 @@ free-standing functions so syntactic and/or semantic differences can be removed.
{
return std::find( boost::begin( c ), boost::end( c ), value );
}
-
+
template< class ForwardReadableRange, class T >
inline typename boost::range_const_iterator< ForwardReadableRange >::type
@@ -95,7 +95,7 @@ class=identifier>ForwardReadableRange >::{
return std::find( boost::begin( c ), boost::end( c ), value );
}
-
+
>::my_generic_replace( ForwardReadableWriteableRange& c, const T& value, const T& replacement )
{
typename boost::range_iterator< ForwardReadableWriteableRange >::type found = find( c, value );
-
+
if( found != boost::end( c ) )
*found = replacement;
return std::distance( boost::begin( c ), found );
@@ -115,30 +115,30 @@ class=identifier>ForwardReadableRange >::const int N = 5;
std::vector<int> my_vector;
- int values[] = { 1,2,3,4,5,6,7,8,9 };
+ int values[] = { 1,2,3,4,5,6,7,8,9 };
- my_vector.my_vector.assign( values, boost::end( values ) );
typedef std::vector<int>::iterator iterator;
std::pair<iterator,iterator> my_view( boost::begin( my_vector ),
boost::begin( my_vector ) + N );
char str_val[] = "a string";
char* str = str_val;
-
- std::cout << my_generic_replace( my_vector, 4, 2 )
- << my_generic_replace( my_view, 4, 2 )
- << my_generic_replace( str, 'a', 'b' );
+
+ std::cout << my_generic_replace( my_vector, 4, 2 );
+ std::cout << my_generic_replace( my_view, 4, 2 );
+ std::cout << my_generic_replace( str, 'a', 'b' );
- By using the free-standing functions and metafunctions, the code automatically
- works for all the types supported by this library; now and in the future.
+ By using the free-standing functions and metafunctions, the code automatically
+ works for all the types supported by this library; now and in the future.
Notice that we have to
- provide two version of find()
since we cannot forward a non-const
- rvalue with reference arguments (see this article about The
+ provide two version of find()
since we cannot forward a non-const
+ rvalue with reference arguments (see this article about The
Forwarding Problem ).