1 /*=============================================================================
2 Copyright (c) 1999-2003 Jaakko Jarvi
3 Copyright (c) 2001-2006 Joel de Guzman
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 #if !defined(FUSION_LESS_05052005_1141)
9 #define FUSION_LESS_05052005_1141
11 #include <boost/mpl/bool.hpp>
12 #include <boost/fusion/iterator/deref.hpp>
13 #include <boost/fusion/iterator/next.hpp>
14 #include <boost/fusion/iterator/equal_to.hpp>
16 namespace boost { namespace fusion { namespace detail
18 template <typename Seq1, typename Seq2>
21 typedef typename result_of::end<Seq1>::type end1_type;
22 typedef typename result_of::end<Seq2>::type end2_type;
24 template <typename I1, typename I2>
26 call(I1 const&, I2 const&, mpl::true_)
31 template <typename I1, typename I2>
33 call(I1 const& a, I2 const& b, mpl::false_)
36 (!(*b < *a) && call(fusion::next(a), fusion::next(b)));
39 template <typename I1, typename I2>
41 call(I1 const& a, I2 const& b)
43 typename result_of::equal_to<I1, end1_type>::type eq;
44 return call(a, b, eq);