variadic_pop_front.hpp 768 B

123456789101112131415161718192021222324
  1. // (C) Copyright Edward Diener 2011-2015
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_VMD_DETAIL_VARIADIC_POP_FRONT_HPP)
  6. #define BOOST_VMD_DETAIL_VARIADIC_POP_FRONT_HPP
  7. #include <boost/preprocessor/tuple/enum.hpp>
  8. #include <boost/preprocessor/tuple/pop_front.hpp>
  9. #include <boost/preprocessor/variadic/to_tuple.hpp>
  10. #define BOOST_VMD_DETAIL_VARIADIC_POP_FRONT(...) \
  11. BOOST_PP_TUPLE_ENUM \
  12. ( \
  13. BOOST_PP_TUPLE_POP_FRONT \
  14. ( \
  15. BOOST_PP_VARIADIC_TO_TUPLE(__VA_ARGS__) \
  16. ) \
  17. ) \
  18. /**/
  19. #endif /* BOOST_VMD_DETAIL_VARIADIC_POP_FRONT_HPP */