size_impl.hpp 868 B

123456789101112131415161718192021222324252627282930313233
  1. /*=============================================================================
  2. Copyright (c) 2011 Eric Niebler
  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_SINGLE_VIEW_SIZE_IMPL_JUL_07_2011_1348PM)
  7. #define FUSION_SINGLE_VIEW_SIZE_IMPL_JUL_07_2011_1348PM
  8. namespace boost { namespace fusion
  9. {
  10. struct single_view_tag;
  11. namespace extension
  12. {
  13. template <typename Tag>
  14. struct size_impl;
  15. template <>
  16. struct size_impl<single_view_tag>
  17. {
  18. template <typename Sequence>
  19. struct apply
  20. {
  21. typedef mpl::int_<1> type;
  22. };
  23. };
  24. }
  25. }}
  26. #endif