...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::algorithm::transform_inclusive_scan — Transforms elements from the input range with uOp and then combines those transformed elements with bOp such that the n-1th element and the nth element are combined. Inclusivity means that the nth element is included in the nth combination.
// In header: <boost/algorithm/cxx17/transform_inclusive_scan.hpp> template<typename InputIterator, typename OutputIterator, typename BinaryOperation, typename UnaryOperation, typename T> OutputIterator transform_inclusive_scan(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation bOp, UnaryOperation uOp, T init);
Transforms elements from the input range with uOp and then combines those transformed elements with bOp such that the n-1th element and the nth element are combined. Inclusivity means that the nth element is included in the nth combination. The first value will be used as the init.
Note | |
---|---|
This function is part of the C++17 standard library |
Note | |
---|---|
This function is part of the C++17 standard library |
Parameters: |
|
||||||||||||
Returns: |
The updated output iterator |
||||||||||||
Returns: |
The updated output iterator |