/Src/Dependencies/Boost/boost/fusion/container/set/detail/set_forward_ctor.hpp

http://hadesmem.googlecode.com/ · C++ Header · 39 lines · 21 code · 7 blank · 11 comment · 1 complexity · f7acfb0a3d67bd3a198f2c8e5bc9e83e MD5 · raw file

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