Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:49:28

0001 /*=============================================================================
0002     Copyright (c) 1999-2003 Jaakko Jarvi
0003     Copyright (c) 2001-2011 Joel de Guzman
0004 
0005     Distributed under the Boost Software License, Version 1.0. (See accompanying
0006     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 ==============================================================================*/
0008 #if !defined(FUSION_LESS_05052005_0432)
0009 #define FUSION_LESS_05052005_0432
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/sequence/intrinsic/begin.hpp>
0013 #include <boost/fusion/sequence/intrinsic/end.hpp>
0014 #include <boost/fusion/sequence/intrinsic/size.hpp>
0015 #include <boost/fusion/sequence/comparison/detail/less.hpp>
0016 #include <boost/fusion/sequence/comparison/enable_comparison.hpp>
0017 
0018 namespace boost { namespace fusion
0019 {
0020     template <typename Seq1, typename Seq2>
0021     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0022     inline bool
0023     less(Seq1 const& a, Seq2 const& b)
0024     {
0025         return detail::sequence_less<Seq1 const, Seq2 const>::
0026             call(fusion::begin(a), fusion::begin(b));
0027     }
0028 
0029     namespace operators
0030     {
0031         template <typename Seq1, typename Seq2>
0032         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0033         inline typename
0034             boost::enable_if<
0035                 traits::enable_comparison<Seq1, Seq2>
0036               , bool
0037             >::type
0038         operator<(Seq1 const& a, Seq2 const& b)
0039         {
0040             return fusion::less(a, b);
0041         }
0042     }
0043     using operators::operator<;
0044 }}
0045 
0046 #endif