diff options
Diffstat (limited to 'boost/fusion/sequence/comparison')
13 files changed, 48 insertions, 0 deletions
diff --git a/boost/fusion/sequence/comparison/detail/equal_to.hpp b/boost/fusion/sequence/comparison/detail/equal_to.hpp index 56cfe1b247..577023db6a 100644 --- a/boost/fusion/sequence/comparison/detail/equal_to.hpp +++ b/boost/fusion/sequence/comparison/detail/equal_to.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_EQUAL_TO_05052005_1142) #define FUSION_EQUAL_TO_05052005_1142 +#include <boost/fusion/support/config.hpp> #include <boost/mpl/bool.hpp> #include <boost/fusion/iterator/deref.hpp> #include <boost/fusion/iterator/next.hpp> @@ -23,6 +24,7 @@ namespace boost { namespace fusion { namespace detail typedef typename result_of::end<Seq2>::type end2_type; template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const&, I2 const&, mpl::true_) { @@ -30,6 +32,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b, mpl::false_) { @@ -38,6 +41,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b) { @@ -50,6 +54,7 @@ namespace boost { namespace fusion { namespace detail struct sequence_equal_to<Seq1, Seq2, false> { template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& /*a*/, I2 const& /*b*/) { diff --git a/boost/fusion/sequence/comparison/detail/greater.hpp b/boost/fusion/sequence/comparison/detail/greater.hpp index e61287765f..d875f16b2b 100644 --- a/boost/fusion/sequence/comparison/detail/greater.hpp +++ b/boost/fusion/sequence/comparison/detail/greater.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_GREATER_05052005_1142) #define FUSION_GREATER_05052005_1142 +#include <boost/fusion/support/config.hpp> #include <boost/mpl/bool.hpp> #include <boost/fusion/iterator/deref.hpp> #include <boost/fusion/iterator/next.hpp> @@ -23,6 +24,7 @@ namespace boost { namespace fusion { namespace detail typedef typename result_of::end<Seq2>::type end2_type; template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const&, I2 const&, mpl::true_) { @@ -30,6 +32,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b, mpl::false_) { @@ -39,6 +42,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b) { diff --git a/boost/fusion/sequence/comparison/detail/greater_equal.hpp b/boost/fusion/sequence/comparison/detail/greater_equal.hpp index 6d91e27bbd..e0aa530e18 100644 --- a/boost/fusion/sequence/comparison/detail/greater_equal.hpp +++ b/boost/fusion/sequence/comparison/detail/greater_equal.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_GREATER_EQUAL_05052005_1142) #define FUSION_GREATER_EQUAL_05052005_1142 +#include <boost/fusion/support/config.hpp> #include <boost/mpl/bool.hpp> #include <boost/fusion/iterator/deref.hpp> #include <boost/fusion/iterator/next.hpp> @@ -23,6 +24,7 @@ namespace boost { namespace fusion { namespace detail typedef typename result_of::end<Seq2>::type end2_type; template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const&, I2 const&, mpl::true_) { @@ -30,6 +32,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b, mpl::false_) { @@ -39,6 +42,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b) { diff --git a/boost/fusion/sequence/comparison/detail/less.hpp b/boost/fusion/sequence/comparison/detail/less.hpp index 1342bb1427..8964ca7d13 100644 --- a/boost/fusion/sequence/comparison/detail/less.hpp +++ b/boost/fusion/sequence/comparison/detail/less.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_LESS_05052005_1141) #define FUSION_LESS_05052005_1141 +#include <boost/fusion/support/config.hpp> #include <boost/mpl/bool.hpp> #include <boost/fusion/iterator/deref.hpp> #include <boost/fusion/iterator/next.hpp> @@ -23,6 +24,7 @@ namespace boost { namespace fusion { namespace detail typedef typename result_of::end<Seq2>::type end2_type; template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const&, I2 const&, mpl::true_) { @@ -30,6 +32,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b, mpl::false_) { @@ -39,6 +42,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b) { diff --git a/boost/fusion/sequence/comparison/detail/less_equal.hpp b/boost/fusion/sequence/comparison/detail/less_equal.hpp index 5683849a2c..10bcb76791 100644 --- a/boost/fusion/sequence/comparison/detail/less_equal.hpp +++ b/boost/fusion/sequence/comparison/detail/less_equal.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_LESS_EQUAL_05052005_1141) #define FUSION_LESS_EQUAL_05052005_1141 +#include <boost/fusion/support/config.hpp> #include <boost/mpl/bool.hpp> #include <boost/fusion/iterator/deref.hpp> #include <boost/fusion/iterator/next.hpp> @@ -23,6 +24,7 @@ namespace boost { namespace fusion { namespace detail typedef typename result_of::end<Seq2>::type end2_type; template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const&, I2 const&, mpl::true_) { @@ -30,6 +32,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b, mpl::false_) { @@ -39,6 +42,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b) { diff --git a/boost/fusion/sequence/comparison/detail/not_equal_to.hpp b/boost/fusion/sequence/comparison/detail/not_equal_to.hpp index 77c235089f..b230ac1fba 100644 --- a/boost/fusion/sequence/comparison/detail/not_equal_to.hpp +++ b/boost/fusion/sequence/comparison/detail/not_equal_to.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_NOT_EQUAL_TO_05052005_1141) #define FUSION_NOT_EQUAL_TO_05052005_1141 +#include <boost/fusion/support/config.hpp> #include <boost/mpl/bool.hpp> #include <boost/fusion/iterator/deref.hpp> #include <boost/fusion/iterator/next.hpp> @@ -23,6 +24,7 @@ namespace boost { namespace fusion { namespace detail typedef typename result_of::end<Seq2>::type end2_type; template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const&, I2 const&, mpl::true_) { @@ -30,6 +32,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b, mpl::false_) { @@ -38,6 +41,7 @@ namespace boost { namespace fusion { namespace detail } template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b) { @@ -50,6 +54,7 @@ namespace boost { namespace fusion { namespace detail struct sequence_not_equal_to<Seq1, Seq2, false> { template <typename I1, typename I2> + BOOST_FUSION_GPU_ENABLED static bool call(I1 const& a, I2 const& b) { diff --git a/boost/fusion/sequence/comparison/enable_comparison.hpp b/boost/fusion/sequence/comparison/enable_comparison.hpp index bd55ac302e..1279417714 100644 --- a/boost/fusion/sequence/comparison/enable_comparison.hpp +++ b/boost/fusion/sequence/comparison/enable_comparison.hpp @@ -7,6 +7,7 @@ #if !defined(FUSION_ENABLE_COMPARISON_09232005_1958) #define FUSION_ENABLE_COMPARISON_09232005_1958 +#include <boost/fusion/support/config.hpp> #include <boost/mpl/or.hpp> #include <boost/mpl/and.hpp> #include <boost/mpl/not.hpp> diff --git a/boost/fusion/sequence/comparison/equal_to.hpp b/boost/fusion/sequence/comparison/equal_to.hpp index 9c4e043558..485df0bac2 100644 --- a/boost/fusion/sequence/comparison/equal_to.hpp +++ b/boost/fusion/sequence/comparison/equal_to.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_EQUAL_TO_05052005_0431) #define FUSION_EQUAL_TO_05052005_0431 +#include <boost/fusion/support/config.hpp> #include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/sequence/intrinsic/end.hpp> #include <boost/fusion/sequence/intrinsic/size.hpp> @@ -23,6 +24,7 @@ namespace boost { namespace fusion { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline bool equal_to(Seq1 const& a, Seq2 const& b) { @@ -36,6 +38,7 @@ namespace boost { namespace fusion namespace operators { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline typename boost::enable_if< traits::enable_equality<Seq1, Seq2> diff --git a/boost/fusion/sequence/comparison/greater.hpp b/boost/fusion/sequence/comparison/greater.hpp index 077138d80d..5ad7ef74b9 100644 --- a/boost/fusion/sequence/comparison/greater.hpp +++ b/boost/fusion/sequence/comparison/greater.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_GREATER_05052005_0432) #define FUSION_GREATER_05052005_0432 +#include <boost/fusion/support/config.hpp> #include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/sequence/intrinsic/end.hpp> #include <boost/fusion/sequence/intrinsic/size.hpp> @@ -22,6 +23,7 @@ namespace boost { namespace fusion { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline bool greater(Seq1 const& a, Seq2 const& b) { @@ -36,6 +38,7 @@ namespace boost { namespace fusion namespace operators { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline typename boost::enable_if< traits::enable_comparison<Seq1, Seq2> diff --git a/boost/fusion/sequence/comparison/greater_equal.hpp b/boost/fusion/sequence/comparison/greater_equal.hpp index 90175bc7d2..65904f8339 100644 --- a/boost/fusion/sequence/comparison/greater_equal.hpp +++ b/boost/fusion/sequence/comparison/greater_equal.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_GREATER_EQUAL_05052005_0432) #define FUSION_GREATER_EQUAL_05052005_0432 +#include <boost/fusion/support/config.hpp> #include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/sequence/intrinsic/end.hpp> #include <boost/fusion/sequence/intrinsic/size.hpp> @@ -22,6 +23,7 @@ namespace boost { namespace fusion { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline bool greater_equal(Seq1 const& a, Seq2 const& b) { @@ -36,6 +38,7 @@ namespace boost { namespace fusion namespace operators { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline typename boost::enable_if< traits::enable_comparison<Seq1, Seq2> diff --git a/boost/fusion/sequence/comparison/less.hpp b/boost/fusion/sequence/comparison/less.hpp index 944cdcf69e..28762b7394 100644 --- a/boost/fusion/sequence/comparison/less.hpp +++ b/boost/fusion/sequence/comparison/less.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_LESS_05052005_0432) #define FUSION_LESS_05052005_0432 +#include <boost/fusion/support/config.hpp> #include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/sequence/intrinsic/end.hpp> #include <boost/fusion/sequence/intrinsic/size.hpp> @@ -17,6 +18,7 @@ namespace boost { namespace fusion { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline bool less(Seq1 const& a, Seq2 const& b) { @@ -27,6 +29,7 @@ namespace boost { namespace fusion namespace operators { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline typename boost::enable_if< traits::enable_comparison<Seq1, Seq2> diff --git a/boost/fusion/sequence/comparison/less_equal.hpp b/boost/fusion/sequence/comparison/less_equal.hpp index 0e5d23a5eb..d0668208f0 100644 --- a/boost/fusion/sequence/comparison/less_equal.hpp +++ b/boost/fusion/sequence/comparison/less_equal.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_LESS_EQUAL_05052005_0432) #define FUSION_LESS_EQUAL_05052005_0432 +#include <boost/fusion/support/config.hpp> #include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/sequence/intrinsic/end.hpp> #include <boost/fusion/sequence/intrinsic/size.hpp> @@ -23,6 +24,7 @@ namespace boost { namespace fusion { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline bool less_equal(Seq1 const& a, Seq2 const& b) { @@ -39,6 +41,7 @@ namespace boost { namespace fusion #if defined(BOOST_MSVC) && (BOOST_MSVC <= 1400) // Workaround for VC8.0 and VC7.1 template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline bool operator<=(sequence_base<Seq1> const& a, sequence_base<Seq2> const& b) { @@ -46,6 +49,7 @@ namespace boost { namespace fusion } template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline typename disable_if<traits::is_native_fusion_sequence<Seq2>, bool>::type operator<=(sequence_base<Seq1> const& a, Seq2 const& b) { @@ -53,6 +57,7 @@ namespace boost { namespace fusion } template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline typename disable_if<traits::is_native_fusion_sequence<Seq1>, bool>::type operator<=(Seq1 const& a, sequence_base<Seq2> const& b) { @@ -64,6 +69,7 @@ namespace boost { namespace fusion // but barfs somewhere else. template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline typename boost::enable_if< traits::enable_comparison<Seq1, Seq2> diff --git a/boost/fusion/sequence/comparison/not_equal_to.hpp b/boost/fusion/sequence/comparison/not_equal_to.hpp index 14ef25df7f..4cd94f9e53 100644 --- a/boost/fusion/sequence/comparison/not_equal_to.hpp +++ b/boost/fusion/sequence/comparison/not_equal_to.hpp @@ -8,6 +8,7 @@ #if !defined(FUSION_NOT_EQUAL_TO_05052005_0431) #define FUSION_NOT_EQUAL_TO_05052005_0431 +#include <boost/fusion/support/config.hpp> #include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/sequence/intrinsic/end.hpp> #include <boost/fusion/sequence/intrinsic/size.hpp> @@ -22,6 +23,7 @@ namespace boost { namespace fusion { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline bool not_equal_to(Seq1 const& a, Seq2 const& b) { @@ -39,6 +41,7 @@ namespace boost { namespace fusion namespace operators { template <typename Seq1, typename Seq2> + BOOST_FUSION_GPU_ENABLED inline typename boost::enable_if< traits::enable_equality<Seq1, Seq2> |