fold_impl.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef BOOST_MPL_AUX_FOLD_IMPL_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_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/apply.hpp>
  16. # include <boost/mpl/deref.hpp>
  17. # include <boost/mpl/aux_/config/ctps.hpp>
  18. # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
  19. # include <boost/mpl/if.hpp>
  20. # include <boost/type_traits/is_same.hpp>
  21. # endif
  22. #endif
  23. #include <boost/mpl/aux_/config/use_preprocessed.hpp>
  24. #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
  25. && !defined(BOOST_MPL_PREPROCESSING_MODE)
  26. # define BOOST_MPL_PREPROCESSED_HEADER fold_impl.hpp
  27. # include <boost/mpl/aux_/include_preprocessed.hpp>
  28. #else
  29. # define AUX778076_FOLD_IMPL_OP(iter) typename deref<iter>::type
  30. # define AUX778076_FOLD_IMPL_NAME_PREFIX fold
  31. # include <boost/mpl/aux_/fold_impl_body.hpp>
  32. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  33. #endif // BOOST_MPL_AUX_FOLD_IMPL_HPP_INCLUDED