mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix template-parameter name: Iterator, Range
This commit is contained in:
parent
ddccff51e6
commit
21cefe8a67
62 changed files with 809 additions and 784 deletions
|
@ -7,15 +7,15 @@
|
|||
namespace sprout {
|
||||
namespace range {
|
||||
// 26.7.2 Accumulate
|
||||
template<typename Range, typename T, typename BinaryOperation>
|
||||
template<typename InputRange, typename T, typename BinaryOperation>
|
||||
inline SPROUT_CONSTEXPR T
|
||||
accumulate(Range const& range, T init, BinaryOperation binary_op) {
|
||||
accumulate(InputRange const& range, T init, BinaryOperation binary_op) {
|
||||
return sprout::accumulate(sprout::begin(range), sprout::end(range), init, binary_op);
|
||||
}
|
||||
|
||||
template<typename Range, typename T>
|
||||
template<typename InputRange, typename T>
|
||||
inline SPROUT_CONSTEXPR T
|
||||
accumulate(Range const& range, T init) {
|
||||
accumulate(InputRange const& range, T init) {
|
||||
return sprout::accumulate(sprout::begin(range), sprout::end(range), init);
|
||||
}
|
||||
} // namespace range
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue