|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75475 - sandbox/variadic_templates/sandbox/stepper/boost/array_stepper
From: cppljevans_at_[hidden]
Date: 2011-11-13 07:28:16
Author: cppljevans
Date: 2011-11-13 07:28:15 EST (Sun, 13 Nov 2011)
New Revision: 75475
URL: http://svn.boost.org/trac/boost/changeset/75475
Log:
add missing file
Added:
sandbox/variadic_templates/sandbox/stepper/boost/array_stepper/array_dyn.hpp (contents, props changed)
Added: sandbox/variadic_templates/sandbox/stepper/boost/array_stepper/array_dyn.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_templates/sandbox/stepper/boost/array_stepper/array_dyn.hpp 2011-11-13 07:28:15 EST (Sun, 13 Nov 2011)
@@ -0,0 +1,60 @@
+#ifndef BOOST_ARRAY_STEPPER_ARRAY_DYN_HPP_INCLUDED
+#define BOOST_ARRAY_STEPPER_ARRAY_DYN_HPP_INCLUDED
+#include <boost/array_stepper/array_store.hpp>
+
+namespace boost
+{
+namespace array_stepper
+{
+ template
+ < typename T
+ >
+ struct
+array_dyn
+/**@brief
+ * Provide more convenient constructors
+ * for superclass.
+ */
+: array_store<T>
+{
+ typedef
+ array_store<T>
+ super_t
+ ;
+ typedef typename
+ super_t::domain_t
+ domain_t
+ ;
+ template
+ < typename Lengths
+ >
+ array_dyn
+ ( Lengths const& a_lengths
+ , storage_order_predefined so=domain_t::storage_order_default
+ )
+ : super_t
+ ( a_lengths
+ , domain_t::permute_select(so)(a_lengths.size())
+ )
+ {
+ }
+
+ template
+ < typename Lengths
+ >
+ array_dyn
+ ( Lengths const& a_lengths
+ , typename domain_t::permute_t const& a_permute
+ )
+ : super_t
+ ( a_lengths
+ , a_permute
+ )
+ {
+ }
+};
+
+
+}//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