Skip to content

Commit ca4dad4

Browse files
[iterators.common] Exposition-only style for v_
1 parent a2aeb60 commit ca4dad4

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

source/iterators.tex

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5495,7 +5495,7 @@
54955495
noexcept(noexcept(ranges::iter_swap(declval<const I&>(), declval<const I2&>())));
54965496

54975497
private:
5498-
variant<I, S> v_; // \expos
5498+
variant<I, S> @\exposid{v_}@; // \expos
54995499
};
55005500

55015501
template<class I, class S>
@@ -5554,7 +5554,7 @@
55545554
\begin{itemdescr}
55555555
\pnum
55565556
\effects
5557-
Initializes \tcode{v_} as if by \tcode{v_\{in_place_type<I>, std::move(i)\}}.
5557+
Initializes \exposid{v_} as if by \tcode{\exposid{v_}\{in_place_type<I>, std::move(i)\}}.
55585558
\end{itemdescr}
55595559

55605560
\indexlibraryctor{common_iterator}%
@@ -5565,8 +5565,8 @@
55655565
\begin{itemdescr}
55665566
\pnum
55675567
\effects
5568-
Initializes \tcode{v_} as if by
5569-
\tcode{v_\{in_place_type<S>, std::move(s)\}}.
5568+
Initializes \exposid{v_} as if by
5569+
\tcode{\exposid{v_}\{in_place_type<S>, std::move(s)\}}.
55705570
\end{itemdescr}
55715571

55725572
\indexlibraryctor{common_iterator}%
@@ -5579,13 +5579,13 @@
55795579
\begin{itemdescr}
55805580
\pnum
55815581
\hardexpects
5582-
\tcode{x.v_.valueless_by_exception()} is \tcode{false}.
5582+
\tcode{x.\exposid{v_}.valueless_by_exception()} is \tcode{false}.
55835583

55845584
\pnum
55855585
\effects
5586-
Initializes \tcode{v_} as if by
5587-
\tcode{v_\{in_place_index<$i$>, get<$i$>(x.v_)\}},
5588-
where $i$ is \tcode{x.v_.index()}.
5586+
Initializes \exposid{v_} as if by
5587+
\tcode{\exposid{v_}\{in_place_index<$i$>, get<$i$>(x.\exposid{v_})\}},
5588+
where $i$ is \tcode{x.\exposid{v_}.index()}.
55895589
\end{itemdescr}
55905590

55915591
\indexlibrarymember{operator=}{common_iterator}%
@@ -5599,18 +5599,18 @@
55995599
\begin{itemdescr}
56005600
\pnum
56015601
\hardexpects
5602-
\tcode{x.v_.valueless_by_exception()} is \tcode{false}.
5602+
\tcode{x.\exposid{v_}.valueless_by_exception()} is \tcode{false}.
56035603

56045604
\pnum
56055605
\effects
56065606
Equivalent to:
56075607
\begin{itemize}
5608-
\item If \tcode{v_.index() == x.v_.index()}, then
5609-
\tcode{get<$i$>(v_) = get<$i$>(x.v_)}.
5608+
\item If \tcode{\exposid{v_}.index() == x.\exposid{v_}.index()}, then
5609+
\tcode{get<$i$>(\exposid{v_}) = get<$i$>(x.\exposid{v_})}.
56105610

5611-
\item Otherwise, \tcode{v_.emplace<$i$>(get<$i$>(x.v_))}.
5611+
\item Otherwise, \tcode{\exposid{v_}.emplace<$i$>(get<$i$>(x.\exposid{v_}))}.
56125612
\end{itemize}
5613-
where $i$ is \tcode{x.v_.index()}.
5613+
where $i$ is \tcode{x.\exposid{v_}.index()}.
56145614

56155615
\pnum
56165616
\returns
@@ -5629,11 +5629,11 @@
56295629
\begin{itemdescr}
56305630
\pnum
56315631
\hardexpects
5632-
\tcode{holds_alternative<I>(v_)} is \tcode{true}.
5632+
\tcode{holds_alternative<I>(\exposid{v_})} is \tcode{true}.
56335633

56345634
\pnum
56355635
\effects
5636-
Equivalent to: \tcode{return *get<I>(v_);}
5636+
Equivalent to: \tcode{return *get<I>(\exposid{v_});}
56375637
\end{itemdescr}
56385638

56395639
\indexlibrarymember{operator->}{common_iterator}%
@@ -5654,26 +5654,26 @@
56545654

56555655
\pnum
56565656
\hardexpects
5657-
\tcode{holds_alternative<I>(v_)} is \tcode{true}.
5657+
\tcode{holds_alternative<I>(\exposid{v_})} is \tcode{true}.
56585658

56595659
\pnum
56605660
\effects
56615661
\begin{itemize}
56625662
\item
56635663
If \tcode{I} is a pointer type or if the expression
5664-
\tcode{get<I>(v_).operator->()} is
5665-
well-formed, equivalent to: \tcode{return get<I>(v_);}
5664+
\tcode{get<I>(\exposid{v_}).operator->()} is
5665+
well-formed, equivalent to: \tcode{return get<I>(\exposid{v_});}
56665666

56675667
\item
56685668
Otherwise, if \tcode{iter_reference_t<I>} is a reference type, equivalent to:
56695669
\begin{codeblock}
5670-
auto&& tmp = *get<I>(v_);
5670+
auto&& tmp = *get<I>(@\exposid{v_}@);
56715671
return addressof(tmp);
56725672
\end{codeblock}
56735673

56745674
\item
56755675
Otherwise, equivalent to:
5676-
\tcode{return \exposid{proxy}(*get<I>(v_));} where
5676+
\tcode{return \exposid{proxy}(*get<I>(\exposid{v_}));} where
56775677
\exposid{proxy} is the exposition-only class:
56785678
\begin{codeblock}
56795679
class @\exposid{proxy}@ {
@@ -5699,11 +5699,11 @@
56995699
\begin{itemdescr}
57005700
\pnum
57015701
\hardexpects
5702-
\tcode{holds_alternative<I>(v_)} is \tcode{true}.
5702+
\tcode{holds_alternative<I>(\exposid{v_})} is \tcode{true}.
57035703

57045704
\pnum
57055705
\effects
5706-
Equivalent to \tcode{++get<I>(v_)}.
5706+
Equivalent to \tcode{++get<I>(\exposid{v_})}.
57075707

57085708
\pnum
57095709
\returns
@@ -5718,7 +5718,7 @@
57185718
\begin{itemdescr}
57195719
\pnum
57205720
\hardexpects
5721-
\tcode{holds_alternative<I>(v_)} is \tcode{true}.
5721+
\tcode{holds_alternative<I>(\exposid{v_})} is \tcode{true}.
57225722

57235723
\pnum
57245724
\effects
@@ -5738,7 +5738,7 @@
57385738
is \tcode{false},
57395739
equivalent to:
57405740
\begin{codeblock}
5741-
return get<I>(v_)++;
5741+
return get<I>(@\exposid{v_}@)++;
57425742
\end{codeblock}
57435743
Otherwise, equivalent to:
57445744
\begin{codeblock}
@@ -5773,14 +5773,14 @@
57735773
\begin{itemdescr}
57745774
\pnum
57755775
\hardexpects
5776-
\tcode{x.v_.valueless_by_exception()} and \tcode{y.v_.valueless_by_exception()}
5776+
\tcode{x.\exposid{v_}.valueless_by_exception()} and \tcode{y.\exposid{v_}.valueless_by_exception()}
57775777
are each \tcode{false}.
57785778

57795779
\pnum
57805780
\returns
57815781
\tcode{true} if \tcode{$i$ == $j$},
5782-
and otherwise \tcode{get<$i$>(x.v_) == get<$j$>(y.v_)},
5783-
where $i$ is \tcode{x.v_.index()} and $j$ is \tcode{y.v_.index()}.
5782+
and otherwise \tcode{get<$i$>(x.\exposid{v_}) == get<$j$>(y.\exposid{v_})},
5783+
where $i$ is \tcode{x.\exposid{v_}.index()} and $j$ is \tcode{y.\exposid{v_}.index()}.
57845784
\end{itemdescr}
57855785

57865786
\indexlibrarymember{operator==}{common_iterator}%
@@ -5794,14 +5794,14 @@
57945794
\begin{itemdescr}
57955795
\pnum
57965796
\hardexpects
5797-
\tcode{x.v_.valueless_by_exception()} and \tcode{y.v_.valueless_by_exception()}
5797+
\tcode{x.\exposid{v_}.valueless_by_exception()} and \tcode{y.\exposid{v_}.valueless_by_exception()}
57985798
are each \tcode{false}.
57995799

58005800
\pnum
58015801
\returns
58025802
\tcode{true} if $i$ and $j$ are each \tcode{1}, and otherwise
5803-
\tcode{get<$i$>(x.v_) == get<$j$>(y.v_)}, where
5804-
$i$ is \tcode{x.v_.index()} and $j$ is \tcode{y.v_.index()}.
5803+
\tcode{get<$i$>(x.\exposid{v_}) == get<$j$>(y.\exposid{v_})}, where
5804+
$i$ is \tcode{x.\exposid{v_}.index()} and $j$ is \tcode{y.\exposid{v_}.index()}.
58055805
\end{itemdescr}
58065806

58075807
\indexlibrarymember{operator-}{common_iterator}%
@@ -5815,14 +5815,14 @@
58155815
\begin{itemdescr}
58165816
\pnum
58175817
\hardexpects
5818-
\tcode{x.v_.valueless_by_exception()} and \tcode{y.v_.valueless_by_exception()}
5818+
\tcode{x.\exposid{v_}.valueless_by_exception()} and \tcode{y.\exposid{v_}.valueless_by_exception()}
58195819
are each \tcode{false}.
58205820

58215821
\pnum
58225822
\returns
58235823
\tcode{0} if $i$ and $j$ are each \tcode{1}, and otherwise
5824-
\tcode{get<$i$>(x.v_) - get<$j$>(y.v_)}, where
5825-
$i$ is \tcode{x.v_.index()} and $j$ is \tcode{y.v_.index()}.
5824+
\tcode{get<$i$>(x.\exposid{v_}) - get<$j$>(y.\exposid{v_})}, where
5825+
$i$ is \tcode{x.\exposid{v_}.index()} and $j$ is \tcode{y.\exposid{v_}.index()}.
58265826
\end{itemdescr}
58275827

58285828
\rSec3[common.iter.cust]{Customizations}
@@ -5837,11 +5837,11 @@
58375837
\begin{itemdescr}
58385838
\pnum
58395839
\hardexpects
5840-
\tcode{holds_alternative<I>(i.v_)} is \tcode{true}.
5840+
\tcode{holds_alternative<I>(i.\exposid{v_})} is \tcode{true}.
58415841

58425842
\pnum
58435843
\effects
5844-
Equivalent to: \tcode{return ranges::iter_move(get<I>(i.v_));}
5844+
Equivalent to: \tcode{return ranges::iter_move(get<I>(i.\exposid{v_}));}
58455845
\end{itemdescr}
58465846

58475847
\indexlibrarymember{iter_swap}{common_iterator}%
@@ -5854,12 +5854,12 @@
58545854
\begin{itemdescr}
58555855
\pnum
58565856
\hardexpects
5857-
\tcode{holds_alternative<I>(x.v_)} and \tcode{holds_alternative<I2>(y.v_)}
5857+
\tcode{holds_alternative<I>(x.\exposid{v_})} and \tcode{holds_alternative<I2>(y.\exposid{v_})}
58585858
are each \tcode{true}.
58595859

58605860
\pnum
58615861
\effects
5862-
Equivalent to \tcode{ranges::iter_swap(get<I>(x.v_), get<I2>(y.v_))}.
5862+
Equivalent to \tcode{ranges::iter_swap(get<I>(x.\exposid{v_}), get<I2>(y.\exposid{v_}))}.
58635863
\end{itemdescr}
58645864

58655865
\rSec2[default.sentinel]{Default sentinel}

0 commit comments

Comments
 (0)