push_back.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. # /* **************************************************************************
  2. # * *
  3. # * (C) Copyright Edward Diener 2013.
  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. # /* See http://www.boost.org for most recent version. */
  11. #
  12. # ifndef BOOST_PREPROCESSOR_TUPLE_PUSH_BACK_HPP
  13. # define BOOST_PREPROCESSOR_TUPLE_PUSH_BACK_HPP
  14. #
  15. # include <boost/preprocessor/config/config.hpp>
  16. #
  17. # if BOOST_PP_VARIADICS
  18. #
  19. # include <boost/preprocessor/array/push_back.hpp>
  20. # include <boost/preprocessor/array/to_tuple.hpp>
  21. # include <boost/preprocessor/tuple/to_array.hpp>
  22. #
  23. # /* BOOST_PP_TUPLE_PUSH_BACK */
  24. #
  25. # define BOOST_PP_TUPLE_PUSH_BACK(tuple, elem) \
  26. BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_PUSH_BACK(BOOST_PP_TUPLE_TO_ARRAY(tuple), elem)) \
  27. /**/
  28. #
  29. # endif // BOOST_PP_VARIADICS
  30. #
  31. # endif // BOOST_PREPROCESSOR_TUPLE_PUSH_BACK_HPP