is_view_impl.hpp 979 B

123456789101112131415161718192021222324252627282930313233
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Copyright (c) 2005-2006 Dan Marsden
  4. Copyright (c) 2009-2010 Christopher Schmidt
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. #ifndef BOOST_FUSION_ADAPTED_STRUCT_DETAIL_IS_VIEW_IMPL_HPP
  9. #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_IS_VIEW_IMPL_HPP
  10. namespace boost { namespace fusion { namespace extension
  11. {
  12. template<typename>
  13. struct is_view_impl;
  14. template<>
  15. struct is_view_impl<struct_tag>
  16. {
  17. template<typename Seq>
  18. struct apply
  19. : struct_is_view<typename remove_const<Seq>::type>
  20. {};
  21. };
  22. template <>
  23. struct is_view_impl<assoc_struct_tag>
  24. : is_view_impl<struct_tag>
  25. {};
  26. }}}
  27. #endif