support STL container: numeric, numeric/dft

This commit is contained in:
bolero-MURAKAMI 2013-02-01 20:21:01 +09:00
parent 092910e2f7
commit aace49ac65
51 changed files with 812 additions and 101 deletions

View file

@ -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;