Skip to content

Commit

Permalink
Added value type iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc committed Mar 12, 2023
1 parent 8ab4e90 commit 2e8ba4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/Lz/Lz.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,15 @@ class IterView final : public internal::BasicIteratorView<Iterator> {

// clang-format off
//! See InclusiveScan.hpp for documentation.
template<class T = value_type, class BinaryOp = MAKE_BIN_OP(std::plus, internal::ValueTypeIterable<Iterable>)>
template<class T = value_type, class BinaryOp = MAKE_BIN_OP(std::plus, internal::ValueType<iterator>)>
LZ_NODISCARD
LZ_CONSTEXPR_CXX_20 IterView<internal::InclusiveScanIterator<Iterator, internal::Decay<T>, internal::Decay<BinaryOp>>>
iScan(T&& init = {}, BinaryOp&& binaryOp = {}) const {
return chain(lz::iScan(*this, std::forward<T>(init), std::forward<BinaryOp>(binaryOp)));
}

//! See ExclusiveScan.hpp for documentation.
template<class T = value_type, class BinaryOp = MAKE_BIN_OP(std::plus, internal::ValueTypeIterable<Iterable>)>
template<class T = value_type, class BinaryOp = MAKE_BIN_OP(std::plus, internal::ValueType<iterator>)>
LZ_NODISCARD
LZ_CONSTEXPR_CXX_20 IterView<internal::ExclusiveScanIterator<Iterator, internal::Decay<T>, internal::Decay<BinaryOp>>>
eScan(T&& init = {}, BinaryOp&& binaryOp = {}) const {
Expand Down

0 comments on commit 2e8ba4d

Please sign in to comment.