to_seq.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # /* **************************************************************************
  2. # * *
  3. # * (C) Copyright Edward Diener 2011.
  4. # * Distributed under the Boost Software License, Version 1.0. (See
  5. # * accompanying file LICENSE_1_0.txt or copy at
  6. # * http://www.boost.org/LICENSE_1_0.txt)
  7. # * *
  8. # ************************************************************************** */
  9. #
  10. # /* Revised by Paul Mensonides (2011) */
  11. #
  12. # /* See http://www.boost.org for most recent version. */
  13. #
  14. # ifndef BOOST_PREPROCESSOR_LIST_TO_SEQ_HPP
  15. # define BOOST_PREPROCESSOR_LIST_TO_SEQ_HPP
  16. #
  17. # include <boost/preprocessor/list/for_each.hpp>
  18. #
  19. # /* BOOST_PP_LIST_TO_SEQ */
  20. #
  21. # define BOOST_PP_LIST_TO_SEQ(list) \
  22. BOOST_PP_LIST_FOR_EACH(BOOST_PP_LIST_TO_SEQ_MACRO, ~, list) \
  23. /**/
  24. # define BOOST_PP_LIST_TO_SEQ_MACRO(r, data, elem) (elem)
  25. #
  26. # /* BOOST_PP_LIST_TO_SEQ_R */
  27. #
  28. # define BOOST_PP_LIST_TO_SEQ_R(r, list) \
  29. BOOST_PP_LIST_FOR_EACH_R(r, BOOST_PP_LIST_TO_SEQ_MACRO, ~, list) \
  30. /**/
  31. #
  32. # endif /* BOOST_PREPROCESSOR_LIST_TO_SEQ_HPP */