diff options
Diffstat (limited to 'boost/fusion/support/detail/is_native_fusion_sequence.hpp')
-rw-r--r-- | boost/fusion/support/detail/is_native_fusion_sequence.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/boost/fusion/support/detail/is_native_fusion_sequence.hpp b/boost/fusion/support/detail/is_native_fusion_sequence.hpp new file mode 100644 index 0000000000..189c784dab --- /dev/null +++ b/boost/fusion/support/detail/is_native_fusion_sequence.hpp @@ -0,0 +1,27 @@ +/*============================================================================= + Copyright (c) 2018 Kohei Takahashi + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +==============================================================================*/ +#ifndef BOOST_FUSION_IS_NATIVE_FUSION_SEQUENCE +#define BOOST_FUSION_IS_NATIVE_FUSION_SEQUENCE + +#include <boost/fusion/support/config.hpp> +#include <boost/fusion/support/sequence_base.hpp> +#include <boost/mpl/and.hpp> +#include <boost/type_traits/is_complete.hpp> +#include <boost/type_traits/is_convertible.hpp> + +namespace boost { namespace fusion { namespace detail +{ + template <typename Sequence> + struct is_native_fusion_sequence + : mpl::and_< + is_complete<Sequence> + , is_convertible<Sequence, detail::from_sequence_convertible_type> + > + {}; +}}} + +#endif |