Skip to content

Commit fbf3dfd

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

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
@@ -5507,7 +5507,7 @@
55075507
noexcept(noexcept(ranges::iter_swap(declval<const I&>(), declval<const I2&>())));
55085508

55095509
private:
5510-
variant<I, S> v_; // \expos
5510+
variant<I, S> @\exposid{v_}@; // \expos
55115511
};
55125512

55135513
template<class I, class S>
@@ -5566,7 +5566,7 @@
55665566
\begin{itemdescr}
55675567
\pnum
55685568
\effects
5569-
Initializes \tcode{v_} as if by \tcode{v_\{in_place_type<I>, std::move(i)\}}.
5569+
Initializes \exposid{v_} as if by \tcode{\exposid{v_}\{in_place_type<I>, std::move(i)\}}.
55705570
\end{itemdescr}
55715571

55725572
\indexlibraryctor{common_iterator}%
@@ -5577,8 +5577,8 @@
55775577
\begin{itemdescr}
55785578
\pnum
55795579
\effects
5580-
Initializes \tcode{v_} as if by
5581-
\tcode{v_\{in_place_type<S>, std::move(s)\}}.
5580+
Initializes \exposid{v_} as if by
5581+
\tcode{\exposid{v_}\{in_place_type<S>, std::move(s)\}}.
55825582
\end{itemdescr}
55835583

55845584
\indexlibraryctor{common_iterator}%
@@ -5591,13 +5591,13 @@
55915591
\begin{itemdescr}
55925592
\pnum
55935593
\hardexpects
5594-
\tcode{x.v_.valueless_by_exception()} is \tcode{false}.
5594+
\tcode{x.\exposid{v_}.valueless_by_exception()} is \tcode{false}.
55955595

55965596
\pnum
55975597
\effects
5598-
Initializes \tcode{v_} as if by
5599-
\tcode{v_\{in_place_index<$i$>, get<$i$>(x.v_)\}},
5600-
where $i$ is \tcode{x.v_.index()}.
5598+
Initializes \exposid{v_} as if by
5599+
\tcode{\exposid{v_}\{in_place_index<$i$>, get<$i$>(x.\exposid{v_})\}},
5600+
where $i$ is \tcode{x.\exposid{v_}.index()}.
56015601
\end{itemdescr}
56025602

56035603
\indexlibrarymember{operator=}{common_iterator}%
@@ -5611,18 +5611,18 @@
56115611
\begin{itemdescr}
56125612
\pnum
56135613
\hardexpects
5614-
\tcode{x.v_.valueless_by_exception()} is \tcode{false}.
5614+
\tcode{x.\exposid{v_}.valueless_by_exception()} is \tcode{false}.
56155615

56165616
\pnum
56175617
\effects
56185618
Equivalent to:
56195619
\begin{itemize}
5620-
\item If \tcode{v_.index() == x.v_.index()}, then
5621-
\tcode{get<$i$>(v_) = get<$i$>(x.v_)}.
5620+
\item If \tcode{\exposid{v_}.index() == x.\exposid{v_}.index()}, then
5621+
\tcode{get<$i$>(\exposid{v_}) = get<$i$>(x.\exposid{v_})}.
56225622

5623-
\item Otherwise, \tcode{v_.emplace<$i$>(get<$i$>(x.v_))}.
5623+
\item Otherwise, \tcode{\exposid{v_}.emplace<$i$>(get<$i$>(x.\exposid{v_}))}.
56245624
\end{itemize}
5625-
where $i$ is \tcode{x.v_.index()}.
5625+
where $i$ is \tcode{x.\exposid{v_}.index()}.
56265626

56275627
\pnum
56285628
\returns
@@ -5641,11 +5641,11 @@
56415641
\begin{itemdescr}
56425642
\pnum
56435643
\hardexpects
5644-
\tcode{holds_alternative<I>(v_)} is \tcode{true}.
5644+
\tcode{holds_alternative<I>(\exposid{v_})} is \tcode{true}.
56455645

56465646
\pnum
56475647
\effects
5648-
Equivalent to: \tcode{return *get<I>(v_);}
5648+
Equivalent to: \tcode{return *get<I>(\exposid{v_});}
56495649
\end{itemdescr}
56505650

56515651
\indexlibrarymember{operator->}{common_iterator}%
@@ -5666,26 +5666,26 @@
56665666

56675667
\pnum
56685668
\hardexpects
5669-
\tcode{holds_alternative<I>(v_)} is \tcode{true}.
5669+
\tcode{holds_alternative<I>(\exposid{v_})} is \tcode{true}.
56705670

56715671
\pnum
56725672
\effects
56735673
\begin{itemize}
56745674
\item
56755675
If \tcode{I} is a pointer type or if the expression
5676-
\tcode{get<I>(v_).operator->()} is
5677-
well-formed, equivalent to: \tcode{return get<I>(v_);}
5676+
\tcode{get<I>(\exposid{v_}).operator->()} is
5677+
well-formed, equivalent to: \tcode{return get<I>(\exposid{v_});}
56785678

56795679
\item
56805680
Otherwise, if \tcode{iter_reference_t<I>} is a reference type, equivalent to:
56815681
\begin{codeblock}
5682-
auto&& tmp = *get<I>(v_);
5682+
auto&& tmp = *get<I>(@\exposid{v_}@);
56835683
return addressof(tmp);
56845684
\end{codeblock}
56855685

56865686
\item
56875687
Otherwise, equivalent to:
5688-
\tcode{return \exposid{proxy}(*get<I>(v_));} where
5688+
\tcode{return \exposid{proxy}(*get<I>(\exposid{v_}));} where
56895689
\exposid{proxy} is the exposition-only class:
56905690
\begin{codeblock}
56915691
class @\exposid{proxy}@ {
@@ -5711,11 +5711,11 @@
57115711
\begin{itemdescr}
57125712
\pnum
57135713
\hardexpects
5714-
\tcode{holds_alternative<I>(v_)} is \tcode{true}.
5714+
\tcode{holds_alternative<I>(\exposid{v_})} is \tcode{true}.
57155715

57165716
\pnum
57175717
\effects
5718-
Equivalent to \tcode{++get<I>(v_)}.
5718+
Equivalent to \tcode{++get<I>(\exposid{v_})}.
57195719

57205720
\pnum
57215721
\returns
@@ -5730,7 +5730,7 @@
57305730
\begin{itemdescr}
57315731
\pnum
57325732
\hardexpects
5733-
\tcode{holds_alternative<I>(v_)} is \tcode{true}.
5733+
\tcode{holds_alternative<I>(\exposid{v_})} is \tcode{true}.
57345734

57355735
\pnum
57365736
\effects
@@ -5750,7 +5750,7 @@
57505750
is \tcode{false},
57515751
equivalent to:
57525752
\begin{codeblock}
5753-
return get<I>(v_)++;
5753+
return get<I>(@\exposid{v_}@)++;
57545754
\end{codeblock}
57555755
Otherwise, equivalent to:
57565756
\begin{codeblock}
@@ -5785,14 +5785,14 @@
57855785
\begin{itemdescr}
57865786
\pnum
57875787
\hardexpects
5788-
\tcode{x.v_.valueless_by_exception()} and \tcode{y.v_.valueless_by_exception()}
5788+
\tcode{x.\exposid{v_}.valueless_by_exception()} and \tcode{y.\exposid{v_}.valueless_by_exception()}
57895789
are each \tcode{false}.
57905790

57915791
\pnum
57925792
\returns
57935793
\tcode{true} if \tcode{$i$ == $j$},
5794-
and otherwise \tcode{get<$i$>(x.v_) == get<$j$>(y.v_)},
5795-
where $i$ is \tcode{x.v_.index()} and $j$ is \tcode{y.v_.index()}.
5794+
and otherwise \tcode{get<$i$>(x.\exposid{v_}) == get<$j$>(y.\exposid{v_})},
5795+
where $i$ is \tcode{x.\exposid{v_}.index()} and $j$ is \tcode{y.\exposid{v_}.index()}.
57965796
\end{itemdescr}
57975797

57985798
\indexlibrarymember{operator==}{common_iterator}%
@@ -5806,14 +5806,14 @@
58065806
\begin{itemdescr}
58075807
\pnum
58085808
\hardexpects
5809-
\tcode{x.v_.valueless_by_exception()} and \tcode{y.v_.valueless_by_exception()}
5809+
\tcode{x.\exposid{v_}.valueless_by_exception()} and \tcode{y.\exposid{v_}.valueless_by_exception()}
58105810
are each \tcode{false}.
58115811

58125812
\pnum
58135813
\returns
58145814
\tcode{true} if $i$ and $j$ are each \tcode{1}, and otherwise
5815-
\tcode{get<$i$>(x.v_) == get<$j$>(y.v_)}, where
5816-
$i$ is \tcode{x.v_.index()} and $j$ is \tcode{y.v_.index()}.
5815+
\tcode{get<$i$>(x.\exposid{v_}) == get<$j$>(y.\exposid{v_})}, where
5816+
$i$ is \tcode{x.\exposid{v_}.index()} and $j$ is \tcode{y.\exposid{v_}.index()}.
58175817
\end{itemdescr}
58185818

58195819
\indexlibrarymember{operator-}{common_iterator}%
@@ -5827,14 +5827,14 @@
58275827
\begin{itemdescr}
58285828
\pnum
58295829
\hardexpects
5830-
\tcode{x.v_.valueless_by_exception()} and \tcode{y.v_.valueless_by_exception()}
5830+
\tcode{x.\exposid{v_}.valueless_by_exception()} and \tcode{y.\exposid{v_}.valueless_by_exception()}
58315831
are each \tcode{false}.
58325832

58335833
\pnum
58345834
\returns
58355835
\tcode{0} if $i$ and $j$ are each \tcode{1}, and otherwise
5836-
\tcode{get<$i$>(x.v_) - get<$j$>(y.v_)}, where
5837-
$i$ is \tcode{x.v_.index()} and $j$ is \tcode{y.v_.index()}.
5836+
\tcode{get<$i$>(x.\exposid{v_}) - get<$j$>(y.\exposid{v_})}, where
5837+
$i$ is \tcode{x.\exposid{v_}.index()} and $j$ is \tcode{y.\exposid{v_}.index()}.
58385838
\end{itemdescr}
58395839

58405840
\rSec3[common.iter.cust]{Customizations}
@@ -5849,11 +5849,11 @@
58495849
\begin{itemdescr}
58505850
\pnum
58515851
\hardexpects
5852-
\tcode{holds_alternative<I>(i.v_)} is \tcode{true}.
5852+
\tcode{holds_alternative<I>(i.\exposid{v_})} is \tcode{true}.
58535853

58545854
\pnum
58555855
\effects
5856-
Equivalent to: \tcode{return ranges::iter_move(get<I>(i.v_));}
5856+
Equivalent to: \tcode{return ranges::iter_move(get<I>(i.\exposid{v_}));}
58575857
\end{itemdescr}
58585858

58595859
\indexlibrarymember{iter_swap}{common_iterator}%
@@ -5866,12 +5866,12 @@
58665866
\begin{itemdescr}
58675867
\pnum
58685868
\hardexpects
5869-
\tcode{holds_alternative<I>(x.v_)} and \tcode{holds_alternative<I2>(y.v_)}
5869+
\tcode{holds_alternative<I>(x.\exposid{v_})} and \tcode{holds_alternative<I2>(y.\exposid{v_})}
58705870
are each \tcode{true}.
58715871

58725872
\pnum
58735873
\effects
5874-
Equivalent to \tcode{ranges::iter_swap(get<I>(x.v_), get<I2>(y.v_))}.
5874+
Equivalent to \tcode{ranges::iter_swap(get<I>(x.\exposid{v_}), get<I2>(y.\exposid{v_}))}.
58755875
\end{itemdescr}
58765876

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

0 commit comments

Comments
 (0)