clear.hpp 969 B

123456789101112131415161718192021222324252627282930313233
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(FUSION_CLEAR_10022005_1817)
  7. #define FUSION_CLEAR_10022005_1817
  8. #include <boost/mpl/clear.hpp>
  9. #include <boost/fusion/support/tag_of.hpp>
  10. #include <boost/fusion/mpl/detail/clear.hpp>
  11. namespace boost { namespace mpl
  12. {
  13. template <typename Tag>
  14. struct clear_impl;
  15. template <>
  16. struct clear_impl<fusion::fusion_sequence_tag>
  17. {
  18. template <typename Sequence>
  19. struct apply
  20. {
  21. typedef typename
  22. fusion::detail::clear<typename fusion::detail::tag_of<Sequence>::type>::type
  23. type;
  24. };
  25. };
  26. }}
  27. #endif