CPARK 1.0
A light-weighted, distributed computing framework for C++ that offers a fast and general-purpose large data processing solution.
|
#include <merged_view.h>
Public Types | |
using | difference_type = std::ptrdiff_t |
using | value_type = std::ranges::range_value_t< V1 > |
Public Member Functions | |
template<typename Iter > | |
Iterator (Iter iterator, V1 *view1, V2 *view2, bool if_hold1) | |
value_type | operator* () const |
Iterator & | operator++ () |
Iterator | operator++ (int) |
bool | operator== (const Iterator &other) const |
bool | operator!= (const Iterator &other) const |
A lazily evaluated iterator that read elements combined from two different views.
|
inline |
Creates Iterator with:
Iter | Type of the start iterator. |
iterator | The start iterator points to the first element. |
view1 | The first view. |
view2 | The second view. |
if_hold1 | Whether the start iterator is from view1 or view2. Note that if_hold1 must be consistent with the type of Iter . |