7#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_ACCUMULATE_HPP_
8#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_ACCUMULATE_HPP_
17#include "arene/base/algorithm/detail/generalized_reduce.hpp"
18#include "arene/base/algorithm/detail/reduce_policy_copy_assign.hpp"
19#include "arene/base/algorithm/detail/traits.hpp"
21#include "arene/base/stdlib_choice/enable_if.hpp"
22#include "arene/base/stdlib_choice/is_assignable.hpp"
23#include "arene/base/stdlib_choice/is_move_constructible.hpp"
24#include "arene/base/stdlib_choice/move.hpp"
25#include "arene/base/stdlib_choice/plus.hpp"
75 arene::base::algorithm_detail::iter_reference_t<InputIt>
88 arene::base::algorithm_detail::generalized_reduce,
89 arene::base::algorithm_detail::reduce_policy_copy_assign<Value>,
98 using arene::base::algorithm_detail::generalized_reduce;
99 using policy = arene::base::algorithm_detail::reduce_policy_copy_assign<Value>;
101 return policy::access(
102 generalized_reduce{}(
150 arene::base::algorithm_detail::iter_reference_t<InputIt>>>
::value>> =
nullptr>
static constexpr value_type value
Definition integral_constant.hpp:34
Type trait to detect if an instance of To is assignable to from arguments of From.
Definition is_assignable.hpp:47
Function object for performing addition.
Definition plus.hpp:27
Public export header for the constraints subpackage.
typename invoke_result< Fn, Args... >::type invoke_result_t
The return type of a functor invoked with the specified arguments.
Definition is_invocable.hpp:271
constexpr bool is_nothrow_invocable_v
Determine if a functor type is no-throw invocable with the specified argument types.
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
constexpr Type integral_constant< Type, Value >::value
Out-of-line definition for the value constant.
Definition integral_constant.hpp:64
constexpr auto move(T &&value) noexcept -> remove_reference_t< T > &&
Cast a value to an rvalue.
Definition move.hpp:30
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...
auto accumulate(InputIt first, InputIt last, Value init, Plus plus) noexcept(//std::is_nothrow_move_constructible< Value >::value &&arene::base::is_nothrow_invocable_v< arene::base::algorithm_detail::generalized_reduce, arene::base::algorithm_detail::reduce_policy_copy_assign< Value >, InputIt &, InputIt &, Value, Plus & >) -> Value
computes a left fold of a range
Definition accumulate.hpp:80