/Src/Dependencies/Boost/boost/fusion/algorithm/transformation/clear.hpp

http://hadesmem.googlecode.com/ · C++ Header · 32 lines · 21 code · 5 blank · 6 comment · 0 complexity · 699519858abfb7d818e60ee7abcb5eab MD5 · raw file

  1. /*=============================================================================
  2. Copyright (c) 2001-2006 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