clear.hpp 861 B

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