Skip to content

Commit d899065

Browse files
committed
[range.cartesian] Replace "tuple-or-pair" with "tuple".
These changes are part of LWG-Motion 12 (P2165R4, "Compatibility between tuple and tuple-like objects").
1 parent b77c526 commit d899065

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/ranges.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13871,9 +13871,9 @@
1387113871
public:
1387213872
using iterator_category = input_iterator_tag;
1387313873
using iterator_concept = @\seebelow@;
13874-
using value_type = @\exposid{tuple-or-pair}@<range_value_t<@\exposid{maybe-const}@<Const, First>>,
13874+
using value_type = tuple<range_value_t<@\exposid{maybe-const}@<Const, First>>,
1387513875
range_value_t<@\exposid{maybe-const}@<Const, Vs>>...>;
13876-
using reference = @\exposid{tuple-or-pair}@<reference_t<@\exposid{maybe-const}@<Const, First>>,
13876+
using reference = tuple<reference_t<@\exposid{maybe-const}@<Const, First>>,
1387713877
reference_t<@\exposid{maybe-const}@<Const, Vs>>...>;
1387813878
using difference_type = @\seebelow@;
1387913879

@@ -13931,7 +13931,7 @@
1393113931

1393213932
private:
1393313933
@\exposid{maybe-const}@<Const, cartesian_product_view>* @\exposid{parent_}@ = nullptr; // \expos
13934-
@\exposid{tuple-or-pair}@<iterator_t<@\exposid{maybe-const}@<Const, First>>,
13934+
tuple<iterator_t<@\exposid{maybe-const}@<Const, First>>,
1393513935
iterator_t<@\exposid{maybe-const}@<Const, Vs>>...> @\exposid{current_}@; // \expos
1393613936

1393713937
template<size_t N = sizeof...(Vs)>
@@ -13943,7 +13943,7 @@
1394313943
template<class Tuple>
1394413944
constexpr difference_type @\exposid{distance-from}@(Tuple t); // \expos
1394513945

13946-
constexpr explicit @\exposid{iterator}@(@\exposid{tuple-or-pair}@<iterator_t<@\exposid{maybe-const}@<Const, First>>,
13946+
constexpr explicit @\exposid{iterator}@(tuple<iterator_t<@\exposid{maybe-const}@<Const, First>>,
1394713947
iterator_t<@\exposid{maybe-const}@<Const, Vs>>...> current); // \expos
1394813948
};
1394913949
}
@@ -14057,7 +14057,7 @@
1405714057
\end{itemdescr}
1405814058

1405914059
\begin{itemdecl}
14060-
constexpr explicit @\exposid{iterator}@(@\exposid{tuple-or-pair}@<iterator_t<maybe-const<Const, First>>,
14060+
constexpr explicit @\exposid{iterator}@(tuple<iterator_t<maybe-const<Const, First>>,
1406114061
iterator_t<maybe-const<Const, Vs>>...> current);
1406214062
\end{itemdecl}
1406314063

0 commit comments

Comments
 (0)