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_GREATER_05052005_0432)
9 #define FUSION_GREATER_05052005_0432
11 #include <boost/fusion/sequence/intrinsic/begin.hpp>
12 #include <boost/fusion/sequence/intrinsic/end.hpp>
13 #include <boost/fusion/sequence/intrinsic/size.hpp>
14 #include <boost/fusion/sequence/comparison/detail/enable_comparison.hpp>
16 #if defined(FUSION_DIRECT_OPERATOR_USAGE)
17 #include <boost/fusion/sequence/comparison/detail/greater.hpp>
19 #include <boost/fusion/sequence/comparison/less.hpp>
22 namespace boost { namespace fusion
24 template <typename Seq1, typename Seq2>
26 greater(Seq1 const& a, Seq2 const& b)
28 #if defined(FUSION_DIRECT_OPERATOR_USAGE)
29 return detail::sequence_greater<Seq1 const, Seq2 const>::
30 call(fusion::begin(a), fusion::begin(b));
38 template <typename Seq1, typename Seq2>
41 detail::enable_comparison<Seq1, Seq2>
44 operator>(Seq1 const& a, Seq2 const& b)
46 return fusion::greater(a, b);
49 using operators::operator>;