mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
fix inline
add container/indexes.hpp add tuple/indexes.hpp
This commit is contained in:
parent
ba6482d1ec
commit
c6bd230ee4
340 changed files with 1087 additions and 979 deletions
|
@ -7,12 +7,12 @@
|
|||
namespace sprout {
|
||||
// 26.7.2 Accumulate
|
||||
template<typename Range, typename T, typename BinaryOperation>
|
||||
SPROUT_CONSTEXPR T accumulate(Range const& range, T init, BinaryOperation binary_op) {
|
||||
inline SPROUT_CONSTEXPR T accumulate(Range const& range, T init, BinaryOperation binary_op) {
|
||||
return sprout::accumulate(sprout::begin(range), sprout::end(range), init, binary_op);
|
||||
}
|
||||
|
||||
template<typename Range, typename T>
|
||||
SPROUT_CONSTEXPR T accumulate(Range const& range, T init) {
|
||||
inline SPROUT_CONSTEXPR T accumulate(Range const& range, T init) {
|
||||
return sprout::accumulate(sprout::begin(range), sprout::end(range), init);
|
||||
}
|
||||
} // namespace sprout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue