1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

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 {
adjacent_difference(Input const& input, Result const& result, BinaryOperation binary_op) {
return sprout::fixed::adjacent_difference(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
adjacent_difference(Input const& input) {
return sprout::fixed::adjacent_difference<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
adjacent_difference(Input const& input, BinaryOperation binary_op) {
return sprout::fixed::adjacent_difference<Result>(sprout::begin(input), sprout::end(input), binary_op);
}
} // namespace fixed
using sprout::range::fixed::adjacent_difference;