summaryrefslogtreecommitdiff
path: root/boost/fusion/algorithm/query/detail/count_if.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/algorithm/query/detail/count_if.hpp')
-rw-r--r--boost/fusion/algorithm/query/detail/count_if.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/boost/fusion/algorithm/query/detail/count_if.hpp b/boost/fusion/algorithm/query/detail/count_if.hpp
index 7110071ddf..baf9fe9f4f 100644
--- a/boost/fusion/algorithm/query/detail/count_if.hpp
+++ b/boost/fusion/algorithm/query/detail/count_if.hpp
@@ -8,6 +8,7 @@
#if !defined(BOOST_FUSION_COUNT_IF_09162005_0141)
#define BOOST_FUSION_COUNT_IF_09162005_0141
+#include <boost/fusion/support/config.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/fusion/sequence/intrinsic/end.hpp>
@@ -23,6 +24,7 @@ namespace boost { namespace fusion {
namespace detail
{
template <typename First, typename Last, typename F>
+ BOOST_FUSION_GPU_ENABLED
inline int
linear_count_if(First const&, Last const&, F const&, mpl::true_)
{
@@ -30,6 +32,7 @@ namespace detail
}
template <typename First, typename Last, typename F>
+ BOOST_FUSION_GPU_ENABLED
inline int
linear_count_if(First const& first, Last const& last, F& f, mpl::false_)
{
@@ -45,6 +48,7 @@ namespace detail
}
template <typename Sequence, typename F, typename Tag>
+ BOOST_FUSION_GPU_ENABLED
inline int
count_if(Sequence const& seq, F f, Tag)
{
@@ -61,6 +65,7 @@ namespace detail
struct unrolled_count_if
{
template<typename I0, typename F>
+ BOOST_FUSION_GPU_ENABLED
static int call(I0 const& i0, F f)
{
int ct = unrolled_count_if<n-4>::
@@ -91,6 +96,7 @@ namespace detail
struct unrolled_count_if<3>
{
template<typename I0, typename F>
+ BOOST_FUSION_GPU_ENABLED
static int call(I0 const& i0, F f)
{
int ct = 0;
@@ -115,6 +121,7 @@ namespace detail
struct unrolled_count_if<2>
{
template<typename I0, typename F>
+ BOOST_FUSION_GPU_ENABLED
static int call(I0 const& i0, F f)
{
int ct = 0;
@@ -135,6 +142,7 @@ namespace detail
struct unrolled_count_if<1>
{
template<typename I0, typename F>
+ BOOST_FUSION_GPU_ENABLED
static int call(I0 const& i0, F f)
{
int ct = 0;
@@ -149,6 +157,7 @@ namespace detail
struct unrolled_count_if<0>
{
template<typename I0, typename F>
+ BOOST_FUSION_GPU_ENABLED
static int call(I0 const&, F)
{
return 0;
@@ -156,6 +165,7 @@ namespace detail
};
template <typename Sequence, typename F>
+ BOOST_FUSION_GPU_ENABLED
inline int
count_if(Sequence const& seq, F f, random_access_traversal_tag)
{