Update of /cvsroot/boost/boost/boost/algorithm/string/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11283/detail

Modified Files:
        case_conv.hpp 
Log Message:
adapted to the new range interface



Index: case_conv.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/algorithm/string/detail/case_conv.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- case_conv.hpp       27 Jul 2006 10:27:34 -0000      1.4
+++ case_conv.hpp       1 Jul 2007 13:12:57 -0000       1.5
@@ -61,6 +61,49 @@
                 const std::locale& m_Loc;
             };
 
+// algorithm implementation 
-------------------------------------------------------------------------
+
+                       // Transform a range
+                       template<typename OutputIteratorT, typename RangeT, 
typename FunctorT>
+                       OutputIteratorT transform_range_copy(
+                               OutputIteratorT Output,
+                               const RangeT& Input,
+                               FunctorT Functor)
+                       {
+                               return std::transform( 
+                                       begin(Input), 
+                                       end(Input), 
+                                       Output,
+                                       Functor);
+                       }
+
+                       // Transform a range (in-place)
+                       template<typename RangeT, typename FunctorT>
+                       void transform_range(
+                               const RangeT& Input,
+                               FunctorT Functor)
+                       {
+                               std::transform( 
+                                       begin(Input), 
+                                       end(Input), 
+                                       begin(Input),
+                                       Functor);
+                       }
+
+                       template<typename SequenceT, typename RangeT, typename 
FunctorT>
+                       inline SequenceT transform_range_copy( 
+                               const RangeT& Input, 
+                               FunctorT Functor)
+                       {
+                               return SequenceT(
+                                       make_transform_iterator(
+                                               begin(Input),
+                                               Functor),
+                                       make_transform_iterator(
+                                               end(Input), 
+                                               Functor));
+                       }
+
         } // namespace detail
     } // namespace algorithm
 } // namespace boost


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to