mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
support STL container: numeric, numeric/dft
This commit is contained in:
parent
092910e2f7
commit
aace49ac65
51 changed files with 812 additions and 101 deletions
|
@ -23,6 +23,17 @@ namespace sprout {
|
|||
partial_sum(Input const& input, Result const& result, BinaryOperation binary_op) {
|
||||
return sprout::fixed::partial_sum(sprout::begin(input), sprout::end(input), result, binary_op);
|
||||
}
|
||||
|
||||
template<typename Result, typename Input>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
partial_sum(Input const& input) {
|
||||
return sprout::fixed::partial_sum<Result>(sprout::begin(input), sprout::end(input));
|
||||
}
|
||||
template<typename Result, typename Input, typename BinaryOperation>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
partial_sum(Input const& input, BinaryOperation binary_op) {
|
||||
return sprout::fixed::partial_sum<Result>(sprout::begin(input), sprout::end(input), binary_op);
|
||||
}
|
||||
} // namespace fixed
|
||||
|
||||
using sprout::range::fixed::partial_sum;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue