clear.hpp 949 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_09172005_1127)
  7. #define FUSION_CLEAR_09172005_1127
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/container/vector/vector10.hpp>
  10. namespace boost { namespace fusion
  11. {
  12. namespace result_of
  13. {
  14. template <typename Sequence>
  15. struct clear
  16. {
  17. typedef vector0<> type;
  18. };
  19. }
  20. template <typename Sequence>
  21. BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
  22. inline typename result_of::clear<Sequence const>::type
  23. clear(Sequence const& /*seq*/)
  24. {
  25. return vector0<>();
  26. }
  27. }}
  28. #endif