]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/container/vector/detail/vector_forward_ctor.hpp
e4680bb8bb4f217d60227c04bbbde8b85d8c2e63
[rsem.git] / boost / fusion / container / vector / detail / vector_forward_ctor.hpp
1 /*=============================================================================
2     Copyright (c) 2001-2006 Joel de Guzman
3
4     Distributed under the Boost Software License, Version 1.0. (See accompanying 
5     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #ifndef BOOST_PP_IS_ITERATING
8 #if !defined(FUSION_VECTOR_FORWARD_CTOR_07122005_1123)
9 #define FUSION_VECTOR_FORWARD_CTOR_07122005_1123
10
11 #include <boost/preprocessor/iterate.hpp>
12 #include <boost/preprocessor/repetition/enum_params.hpp>
13 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
14
15 #define BOOST_PP_FILENAME_1 \
16     <boost/fusion/container/vector/detail/vector_forward_ctor.hpp>
17 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
18 #include BOOST_PP_ITERATE()
19
20 #endif
21 #else // defined(BOOST_PP_IS_ITERATING)
22 ///////////////////////////////////////////////////////////////////////////////
23 //
24 //  Preprocessor vertical repetition code
25 //
26 ///////////////////////////////////////////////////////////////////////////////
27
28 #define N BOOST_PP_ITERATION()
29
30 #if N == 1
31     explicit
32 #endif
33     vector(BOOST_PP_ENUM_BINARY_PARAMS(
34         N, typename detail::call_param<T, >::type _))
35         : vec(BOOST_PP_ENUM_PARAMS(N, _)) {}
36
37 #undef N
38 #endif // defined(BOOST_PP_IS_ITERATING)
39