Skip to content

Commit

Permalink
fixing zip iterator specification for tuple type
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
  • Loading branch information
danhoeflinger committed Jan 6, 2025
1 parent 6da6e9d commit 8f2074e
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 8f2074e

Please sign in to comment.