2011-08-18 23:14:48 +00:00
|
|
|
/*=============================================================================
|
|
|
|
Copyright (c) 2011 Eric Niebler
|
2015-09-04 00:51:56 +09:00
|
|
|
Copyright (c) 2015 Kohei Takahashi
|
2011-08-18 23:14:48 +00:00
|
|
|
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
==============================================================================*/
|
|
|
|
#if !defined(BOOST_FUSION_ACCUMULATE_FWD_HPP_INCLUDED)
|
|
|
|
#define BOOST_FUSION_ACCUMULATE_FWD_HPP_INCLUDED
|
|
|
|
|
2014-01-09 17:58:06 -08:00
|
|
|
#include <boost/fusion/support/config.hpp>
|
2012-05-14 00:37:21 +00:00
|
|
|
|
2011-08-18 23:14:48 +00:00
|
|
|
namespace boost { namespace fusion
|
|
|
|
{
|
|
|
|
namespace result_of
|
|
|
|
{
|
|
|
|
template <typename Sequence, typename State, typename F>
|
|
|
|
struct accumulate;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename Sequence, typename State, typename F>
|
2015-03-03 02:21:02 +09:00
|
|
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
2015-09-04 00:51:56 +09:00
|
|
|
inline typename result_of::accumulate<Sequence, State const, F>::type
|
2011-08-18 23:14:48 +00:00
|
|
|
accumulate(Sequence& seq, State const& state, F f);
|
|
|
|
|
|
|
|
template <typename Sequence, typename State, typename F>
|
2015-03-03 02:21:02 +09:00
|
|
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
2015-09-04 00:51:56 +09:00
|
|
|
inline typename result_of::accumulate<Sequence const, State const, F>::type
|
2011-08-18 23:14:48 +00:00
|
|
|
accumulate(Sequence const& seq, State const& state, F f);
|
|
|
|
}}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|