1 /*=============================================================================
2 Copyright (c) 2011 Eric Niebler
3 Copyright (c) 2015 Kohei Takahashi
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(BOOST_FUSION_ACCUMULATE_FWD_HPP_INCLUDED)
9 #define BOOST_FUSION_ACCUMULATE_FWD_HPP_INCLUDED
11 #include <boost/fusion/support/config.hpp>
13 namespace boost { namespace fusion
17 template <typename Sequence, typename State, typename F>
21 template <typename Sequence, typename State, typename F>
22 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
23 inline typename result_of::accumulate<Sequence, State const, F>::type
24 accumulate(Sequence& seq, State const& state, F f);
26 template <typename Sequence, typename State, typename F>
27 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
28 inline typename result_of::accumulate<Sequence const, State const, F>::type
29 accumulate(Sequence const& seq, State const& state, F f);