Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75476 - sandbox/variadic_templates/sandbox/stepper/boost/array_stepper
From: cppljevans_at_[hidden]
Date: 2011-11-13 07:31:44


Author: cppljevans
Date: 2011-11-13 07:31:43 EST (Sun, 13 Nov 2011)
New Revision: 75476
URL: http://svn.boost.org/trac/boost/changeset/75476

Log:
add missing file
Added:
   sandbox/variadic_templates/sandbox/stepper/boost/array_stepper/length_strides_make.hpp (contents, props changed)

Added: sandbox/variadic_templates/sandbox/stepper/boost/array_stepper/length_strides_make.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_templates/sandbox/stepper/boost/array_stepper/length_strides_make.hpp 2011-11-13 07:31:43 EST (Sun, 13 Nov 2011)
@@ -0,0 +1,36 @@
+#ifndef BOOST_ARRAY_STEPPER_LENGTH_STRIDES_MAKE_HPP_INCLUDED
+#define BOOST_ARRAY_STEPPER_LENGTH_STRIDES_MAKE_HPP_INCLUDED
+#include <boost/array_stepper/length_stride_compose.hpp>
+#include <boost/array_stepper/scan_first_iter.hpp>
+
+namespace boost
+{
+namespace array_stepper
+{
+ template
+ < typename InpIter
+ , typename OutIter
+ >
+ OutIter
+ length_strides_make
+ ( InpIter a_inp_beg
+ , InpIter a_inp_end
+ , OutIter a_out_beg
+ , typename length_stride_compose<typename OutIter::value_type>::offset_t& a_offset
+ )
+ {
+ typedef typename OutIter::value_type value_t;
+ typedef length_stride_compose<value_t> comp_t;
+ comp_t comp_v(a_offset);
+ return
+ scan_first_iter
+ ( comp_v
+ , a_inp_beg
+ , a_inp_end
+ , a_out_beg
+ );
+ };
+
+}//exit array_stepper namespace
+}//exit boost namespace
+#endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk