clear.hpp 1012 B

12345678910111213141516171819202122232425262728293031323334
  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/fusion/support/config.hpp>
  9. #include <boost/mpl/clear.hpp>
  10. #include <boost/fusion/support/tag_of.hpp>
  11. #include <boost/fusion/mpl/detail/clear.hpp>
  12. namespace boost { namespace mpl
  13. {
  14. template <typename Tag>
  15. struct clear_impl;
  16. template <>
  17. struct clear_impl<fusion::fusion_sequence_tag>
  18. {
  19. template <typename Sequence>
  20. struct apply
  21. {
  22. typedef typename
  23. fusion::detail::clear<typename fusion::detail::tag_of<Sequence>::type>::type
  24. type;
  25. };
  26. };
  27. }}
  28. #endif