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