• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2   [auto_generated]
3   libs/numeric/odeint/test/const_range.hpp
4 
5   [begin_description]
6   tba.
7   [end_description]
8 
9   Copyright 2012 Karsten Ahnert
10   Copyright 2012 Mario Mulansky
11 
12   Distributed under the Boost Software License, Version 1.0.
13   (See accompanying file LICENSE_1_0.txt or
14   copy at http://www.boost.org/LICENSE_1_0.txt)
15 */
16 
17 
18 #ifndef LIBS_NUMERIC_ODEINT_TEST_CONST_RANGE_HPP_DEFINED
19 #define LIBS_NUMERIC_ODEINT_TEST_CONST_RANGE_HPP_DEFINED
20 
21 #include <boost/mpl/copy.hpp>
22 #include <boost/mpl/inserter.hpp>
23 #include <boost/mpl/insert.hpp>
24 #include <boost/mpl/end.hpp>
25 #include <boost/mpl/vector.hpp>
26 #include <boost/mpl/range_c.hpp>
27 #include <boost/mpl/placeholders.hpp>
28 
29 
30 namespace mpl = boost::mpl;
31 
32 
33 
34 template< class N , class T >
35 struct const_range
36 {
37     typedef typename mpl::copy<
38         mpl::range_c< typename N::value_type , 0 , N::value > ,
39         mpl::inserter<
40             mpl::vector0<> ,
41             mpl::insert<
42                 mpl::_1 ,
43                 mpl::end< mpl::_1 > ,
44                 T
45                 >
46             >
47         >::type type;
48 };
49 
50 #endif // LIBS_NUMERIC_ODEINT_TEST_CONST_RANGE_HPP_DEFINED
51