Skip to content

Commit ce02f81

Browse files
committed
Add base() method to iterator adaptors
Addresses the issue #397
1 parent e3ff139 commit ce02f81

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/elements/oneDPL/source/parallel_api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ iterator instances to determine their position relative to each other.
359359
permutation_iterator(const SourceIterator& input1, const IndexMap& input2,
360360
std::size_t index = 0);
361361
362+
SourceIterator base() const;
363+
362364
reference operator*() const;
363365
reference operator[](difference_type i) const;
364366
@@ -421,6 +423,8 @@ using the source iterator and index map provided.
421423
using value_type = typename std::remove_reference<reference>::type;
422424
using pointer = typename std::iterator_traits<Iterator>::pointer;
423425
426+
Iterator base() const;
427+
424428
transform_iterator(Iterator it, UnaryFunc unary_func);
425429
transform_iterator(const transform_iterator& input);
426430
transform_iterator& operator=(const transform_iterator& input);
@@ -479,6 +483,8 @@ using the source iterator and unary function object provided.
479483
using pointer =
480484
std::tuple<typename std::iterator_traits<Iterators>::pointer...>;
481485
486+
std::tuple<Iterators...> base() const;
487+
482488
zip_iterator();
483489
explicit zip_iterator(Iterators... args);
484490
zip_iterator(const zip_iterator& input);

0 commit comments

Comments
 (0)