size_impl.hpp 935 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Copyright (c) 2005-2006 Dan Marsden
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #if !defined(BOOST_FUSION_SIZE_IMPL_20060223_2033)
  8. #define BOOST_FUSION_SIZE_IMPL_20060223_2033
  9. #include <boost/mpl/int.hpp>
  10. namespace example
  11. {
  12. struct example_sequence_tag;
  13. }
  14. namespace boost { namespace fusion {
  15. namespace extension
  16. {
  17. template<typename Tag>
  18. struct size_impl;
  19. template<>
  20. struct size_impl<example::example_sequence_tag>
  21. {
  22. template<typename Sequence>
  23. struct apply
  24. : mpl::int_<2>
  25. {};
  26. };
  27. }
  28. }}
  29. #endif