Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oneDPL] Fixing zip_iterator for value_type and base() return #605

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions source/elements/oneDPL/source/parallel_api/iterators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,12 @@ using the source iterator and unary function object provided.
{
public:
using difference_type = typename std::make_signed<std::size_t>::type;
using value_type =
std::tuple<typename std::iterator_traits<Iterators>::value_type...>;
using value_type = /* unspecified tuple of value types */;
using reference = /* unspecified tuple of reference types */;
using pointer =
std::tuple<typename std::iterator_traits<Iterators>::pointer...>;

std::tuple<Iterators...> base() const;
/* returns unspecified tuple of source Iterators */ base() const;

zip_iterator();
explicit zip_iterator(Iterators... args);
Expand Down Expand Up @@ -287,11 +286,12 @@ using the source iterator and unary function object provided.
};

``zip_iterator`` is an iterator-like type defined over one or more iterators. When dereferenced,
the value returned from ``zip_iterator`` is a tuple of the values returned by dereferencing the
the value returned from ``zip_iterator`` is an unspecified tuple type of the values returned by dereferencing the
source iterators over which the ``zip_iterator`` is defined. The arithmetic operators of
``zip_iterator`` update the source iterators of a ``zip_iterator`` instance as though the
operation were applied to each of these iterators. The types ``T`` within the template pack
``Iterators...`` must satisfy ``AdaptingIteratorSource``.
operation were applied to each of these iterators. The types ``T`` within the template pack
``Iterators...`` must satisfy ``AdaptingIteratorSource``. Member function `base()` returns an unspecified tuple of
the source iterators.

.. code:: cpp

Expand Down
Loading