X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=boost%2Ffusion%2Fview%2Fiterator_range%2Fdetail%2Fis_segmented_impl.hpp;fp=boost%2Ffusion%2Fview%2Fiterator_range%2Fdetail%2Fis_segmented_impl.hpp;h=032225dc2b0036bc193456262ae0ccc360f9cf9f;hb=2d71eb92104693ca9baa5a2e1c23eeca776d8fd3;hp=0000000000000000000000000000000000000000;hpb=da57529b92adbb7ae74a89861cb39fb35ac7c62d;p=rsem.git diff --git a/boost/fusion/view/iterator_range/detail/is_segmented_impl.hpp b/boost/fusion/view/iterator_range/detail/is_segmented_impl.hpp new file mode 100644 index 0000000..032225d --- /dev/null +++ b/boost/fusion/view/iterator_range/detail/is_segmented_impl.hpp @@ -0,0 +1,66 @@ +/*============================================================================= + Copyright (c) 2011 Eric Niebler + + 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) +==============================================================================*/ +#if !defined(BOOST_FUSION_ITERATOR_RANGE_IS_SEGMENTED_HPP_INCLUDED) +#define BOOST_FUSION_ITERATOR_RANGE_IS_SEGMENTED_HPP_INCLUDED + +#include +#include + +namespace boost { namespace fusion +{ + struct iterator_range_tag; + + template + struct segmented_iterator; + + namespace extension + { + template + struct is_segmented_impl; + + // An iterator_range of segmented_iterators is segmented + template <> + struct is_segmented_impl + { + private: + template + struct is_segmented_iterator + : mpl::false_ + {}; + + template + struct is_segmented_iterator + : is_segmented_iterator + {}; + + template + struct is_segmented_iterator + : is_segmented_iterator + {}; + + template + struct is_segmented_iterator > + : mpl::true_ + {}; + + public: + template + struct apply + : is_segmented_iterator + { + BOOST_MPL_ASSERT_RELATION( + is_segmented_iterator::value + , == + , is_segmented_iterator::value); + }; + }; + } +}} + +#endif + +