clear.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_1442)
  7. #define FUSION_CLEAR_10022005_1442
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/container/vector/vector_fwd.hpp>
  10. #include <boost/fusion/container/list/list_fwd.hpp>
  11. #include <boost/fusion/container/map/map_fwd.hpp>
  12. #include <boost/fusion/container/set/set_fwd.hpp>
  13. #include <boost/fusion/container/deque/deque_fwd.hpp>
  14. namespace boost { namespace fusion
  15. {
  16. struct cons_tag;
  17. struct map_tag;
  18. struct set_tag;
  19. struct vector_tag;
  20. struct deque_tag;
  21. namespace detail
  22. {
  23. template <typename Tag>
  24. struct clear;
  25. template <>
  26. struct clear<cons_tag> : mpl::identity<list<> > {};
  27. template <>
  28. struct clear<map_tag> : mpl::identity<map<> > {};
  29. template <>
  30. struct clear<set_tag> : mpl::identity<set<> > {};
  31. template <>
  32. struct clear<vector_tag> : mpl::identity<vector<> > {};
  33. template <>
  34. struct clear<deque_tag> : mpl::identity<deque<> > {};
  35. }
  36. }}
  37. #endif