is_native_fusion_sequence.hpp 947 B

123456789101112131415161718192021222324252627
  1. /*=============================================================================
  2. Copyright (c) 2018 Kohei Takahashi
  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. #ifndef BOOST_FUSION_IS_NATIVE_FUSION_SEQUENCE
  7. #define BOOST_FUSION_IS_NATIVE_FUSION_SEQUENCE
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/support/sequence_base.hpp>
  10. #include <boost/mpl/and.hpp>
  11. #include <boost/type_traits/is_complete.hpp>
  12. #include <boost/type_traits/is_convertible.hpp>
  13. namespace boost { namespace fusion { namespace detail
  14. {
  15. template <typename Sequence>
  16. struct is_native_fusion_sequence
  17. : mpl::and_<
  18. is_complete<Sequence>
  19. , is_convertible<Sequence, detail::from_sequence_convertible_type>
  20. >
  21. {};
  22. }}}
  23. #endif