reverse_fold_impl.hpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef BOOST_MPL_AUX_REVERSE_FOLD_IMPL_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_REVERSE_FOLD_IMPL_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #if !defined(BOOST_MPL_PREPROCESSING_MODE)
  14. # include <boost/mpl/next_prior.hpp>
  15. # include <boost/mpl/deref.hpp>
  16. # include <boost/mpl/apply.hpp>
  17. # include <boost/mpl/aux_/config/ctps.hpp>
  18. # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
  19. || defined(BOOST_MPL_CFG_NO_NONTYPE_TEMPLATE_PARTIAL_SPEC)
  20. # include <boost/mpl/if.hpp>
  21. # include <boost/type_traits/is_same.hpp>
  22. # endif
  23. #endif
  24. #include <boost/mpl/aux_/config/use_preprocessed.hpp>
  25. #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
  26. && !defined(BOOST_MPL_PREPROCESSING_MODE)
  27. # define BOOST_MPL_PREPROCESSED_HEADER reverse_fold_impl.hpp
  28. # include <boost/mpl/aux_/include_preprocessed.hpp>
  29. #else
  30. # define AUX778076_FOLD_IMPL_OP(iter) typename deref<iter>::type
  31. # define AUX778076_FOLD_IMPL_NAME_PREFIX reverse_fold
  32. # include <boost/mpl/aux_/reverse_fold_impl_body.hpp>
  33. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  34. #endif // BOOST_MPL_AUX_REVERSE_FOLD_IMPL_HPP_INCLUDED