identity.hpp 759 B

12345678910111213141516171819202122232425262728
  1. # /* Copyright (C) 2001
  2. # * Housemarque Oy
  3. # * http://www.housemarque.com
  4. # *
  5. # * Distributed under the Boost Software License, Version 1.0. (See
  6. # * accompanying file LICENSE_1_0.txt or copy at
  7. # * http://www.boost.org/LICENSE_1_0.txt)
  8. # */
  9. #
  10. # /* Revised by Paul Mensonides (2002) */
  11. # /* Revised by Edward Diener (2015) */
  12. #
  13. # /* See http://www.boost.org for most recent version. */
  14. #
  15. # ifndef BOOST_PREPROCESSOR_FACILITIES_IDENTITY_HPP
  16. # define BOOST_PREPROCESSOR_FACILITIES_IDENTITY_HPP
  17. #
  18. # include <boost/preprocessor/facilities/empty.hpp>
  19. # include <boost/preprocessor/tuple/eat.hpp>
  20. #
  21. # /* BOOST_PP_IDENTITY */
  22. #
  23. # define BOOST_PP_IDENTITY(item) item BOOST_PP_EMPTY
  24. #
  25. # define BOOST_PP_IDENTITY_N(item,n) item BOOST_PP_TUPLE_EAT_N(n)
  26. #
  27. # endif