1 /*=============================================================================
2 Copyright (c) 2005-2012 Joel de Guzman
3 Copyright (c) 2005-2006 Dan Marsden
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #if !defined(BOOST_FUSION_DEQUE_DETAIL_DEQUE_INITIAL_SIZE_26112006_2139)
9 #define BOOST_FUSION_DEQUE_DETAIL_DEQUE_INITIAL_SIZE_26112006_2139
11 #if defined(BOOST_FUSION_HAS_VARIADIC_DEQUE)
12 #error "C++03 only! This file should not have been included"
15 #include <boost/preprocessor/repetition/enum_params.hpp>
16 #include <boost/mpl/find.hpp>
17 #include <boost/mpl/begin.hpp>
18 #include <boost/mpl/distance.hpp>
19 #include <boost/mpl/equal_to.hpp>
20 #include <boost/mpl/vector.hpp>
22 namespace boost { namespace fusion
27 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
28 #include <boost/fusion/container/deque/detail/cpp03/preprocessed/deque_initial_size.hpp>
30 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
31 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/deque_initial_size" FUSION_MAX_DEQUE_SIZE_STR ".hpp")
34 /*=============================================================================
35 Copyright (c) 2001-2011 Joel de Guzman
37 Distributed under the Boost Software License, Version 1.0. (See accompanying
38 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
40 This is an auto-generated file. Do not edit!
41 ==============================================================================*/
43 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
44 #pragma wave option(preserve: 1)
47 namespace boost { namespace fusion { namespace detail
49 template<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, typename T)>
50 struct deque_initial_size
52 typedef mpl::vector<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, T)> args;
53 typedef typename mpl::find<args, void_>::type first_void;
54 typedef typename mpl::distance<typename mpl::begin<args>::type, first_void>::type type;
58 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
59 #pragma wave option(output: null)
62 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES