Skip to content

Commit 470ccf7

Browse files
[string.view] Exposition-only formatting for data_ and size_
1 parent 157177a commit 470ccf7

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

source/strings.tex

+27-27
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,8 @@
732732
constexpr size_type find_last_not_of(const charT* s, size_type pos = npos) const;
733733

734734
private:
735-
const_pointer data_; // \expos
736-
size_type size_; // \expos
735+
const_pointer @\exposid{data_}@; // \expos
736+
size_type @\exposid{size_}@; // \expos
737737
};
738738

739739
// \ref{string.view.deduct}, deduction guides
@@ -778,7 +778,7 @@
778778
\begin{itemdescr}
779779
\pnum
780780
\ensures
781-
\tcode{size_ == 0} and \tcode{data_ == nullptr}.
781+
\tcode{\exposid{size_} == 0} and \tcode{\exposid{data_} == nullptr}.
782782
\end{itemdescr}
783783

784784
\indexlibraryctor{basic_string_view}%
@@ -793,8 +793,8 @@
793793

794794
\pnum
795795
\effects
796-
Constructs a \tcode{basic_string_view}, initializing \tcode{data_} with \tcode{str}
797-
and initializing \tcode{size_} with \tcode{traits::length(str)}.
796+
Constructs a \tcode{basic_string_view}, initializing \exposid{data_} with \tcode{str}
797+
and initializing \exposid{size_} with \tcode{traits::length(str)}.
798798

799799
\pnum
800800
\complexity
@@ -813,8 +813,8 @@
813813

814814
\pnum
815815
\effects
816-
Constructs a \tcode{basic_string_view}, initializing \tcode{data_} with \tcode{str}
817-
and initializing \tcode{size_} with \tcode{len}.
816+
Constructs a \tcode{basic_string_view}, initializing \exposid{data_} with \tcode{str}
817+
and initializing \exposid{size_} with \tcode{len}.
818818
\end{itemdescr}
819819

820820
\indexlibraryctor{basic_string_view}%
@@ -843,8 +843,8 @@
843843

844844
\pnum
845845
\effects
846-
Initializes \tcode{data_} with \tcode{to_address(begin)} and
847-
initializes \tcode{size_} with \tcode{end - begin}.
846+
Initializes \exposid{data_} with \tcode{to_address(begin)} and
847+
initializes \exposid{size_} with \tcode{end - begin}.
848848

849849
\pnum
850850
\throws
@@ -880,8 +880,8 @@
880880

881881
\pnum
882882
\effects
883-
Initializes \tcode{data_} with \tcode{ranges::data(r)} and
884-
\tcode{size_} with \tcode{ranges::size(r)}.
883+
Initializes \exposid{data_} with \tcode{ranges::data(r)} and
884+
\exposid{size_} with \tcode{ranges::size(r)}.
885885

886886
\pnum
887887
\throws
@@ -947,7 +947,7 @@
947947
\returns
948948
An iterator such that
949949
\begin{itemize}
950-
\item if \tcode{!empty()}, \tcode{addressof(*begin()) == data_},
950+
\item if \tcode{!empty()}, \tcode{addressof(*begin()) == \exposid{data_}},
951951
\item otherwise, an unspecified value such that \range{begin()}{end()} is a valid range.
952952
\end{itemize}
953953
\end{itemdescr}
@@ -1003,7 +1003,7 @@
10031003
\begin{itemdescr}
10041004
\pnum
10051005
\returns
1006-
\tcode{size_}.
1006+
\exposid{size_}.
10071007
\end{itemdescr}
10081008

10091009

@@ -1026,7 +1026,7 @@
10261026
\begin{itemdescr}
10271027
\pnum
10281028
\returns
1029-
\tcode{size_ == 0}.
1029+
\tcode{\exposid{size_} == 0}.
10301030
\end{itemdescr}
10311031

10321032
\rSec3[string.view.access]{Element access}
@@ -1046,7 +1046,7 @@
10461046

10471047
\pnum
10481048
\returns
1049-
\tcode{data_[pos]}.
1049+
\tcode{\exposid{data_}[pos]}.
10501050

10511051
\pnum
10521052
\throws
@@ -1061,7 +1061,7 @@
10611061
\begin{itemdescr}
10621062
\pnum
10631063
\returns
1064-
\tcode{data_[pos]}.
1064+
\tcode{\exposid{data_}[pos]}.
10651065

10661066
\pnum
10671067
\throws
@@ -1080,7 +1080,7 @@
10801080

10811081
\pnum
10821082
\returns
1083-
\tcode{data_[0]}.
1083+
\tcode{\exposid{data_}[0]}.
10841084

10851085
\pnum
10861086
\throws
@@ -1099,7 +1099,7 @@
10991099

11001100
\pnum
11011101
\returns
1102-
\tcode{data_[size() - 1]}.
1102+
\tcode{\exposid{data_}[size() - 1]}.
11031103

11041104
\pnum
11051105
\throws
@@ -1114,7 +1114,7 @@
11141114
\begin{itemdescr}
11151115
\pnum
11161116
\returns
1117-
\tcode{data_}.
1117+
\exposid{data_}.
11181118

11191119
\pnum
11201120
\begin{note}
@@ -1138,7 +1138,7 @@
11381138

11391139
\pnum
11401140
\effects
1141-
Equivalent to: \tcode{data_ += n; size_ -= n;}
1141+
Equivalent to: \tcode{\exposid{data_} += n; \exposid{size_} -= n;}
11421142
\end{itemdescr}
11431143

11441144
\indexlibrarymember{remove_suffix}{basic_string_view}%
@@ -1153,7 +1153,7 @@
11531153

11541154
\pnum
11551155
\effects
1156-
Equivalent to: \tcode{size_ -= n;}
1156+
Equivalent to: \tcode{\exposid{size_} -= n;}
11571157
\end{itemdescr}
11581158

11591159
\indexlibrarymember{swap}{basic_string_view}%
@@ -1446,7 +1446,7 @@
14461446
\item
14471447
\tcode{xpos + str.size() <= size()}
14481448
\item
1449-
\tcode{traits::eq(data_[xpos + I], str[I])} for all elements \tcode{I} of the string referenced by \tcode{str}.
1449+
\tcode{traits::eq(\exposid{data_}[xpos + I], str[I])} for all elements \tcode{I} of the string referenced by \tcode{str}.
14501450
\end{itemize}
14511451

14521452
\pnum
@@ -1473,7 +1473,7 @@
14731473
\item
14741474
\tcode{xpos + str.size() <= size()}
14751475
\item
1476-
\tcode{traits::eq(data_[xpos + I], str[I])} for all elements \tcode{I} of the string referenced by \tcode{str}.
1476+
\tcode{traits::eq(\exposid{data_}[xpos + I], str[I])} for all elements \tcode{I} of the string referenced by \tcode{str}.
14771477
\end{itemize}
14781478

14791479
\pnum
@@ -1500,7 +1500,7 @@
15001500
\item
15011501
\tcode{xpos < size()}
15021502
\item
1503-
\tcode{traits::eq(data_[xpos], str[I])} for some element \tcode{I} of the string referenced by \tcode{str}.
1503+
\tcode{traits::eq(\exposid{data_}[xpos], str[I])} for some element \tcode{I} of the string referenced by \tcode{str}.
15041504
\end{itemize}
15051505

15061506
\pnum
@@ -1527,7 +1527,7 @@
15271527
\item
15281528
\tcode{xpos < size()}
15291529
\item
1530-
\tcode{traits::eq(data_[xpos], str[I])} for some element \tcode{I} of the string referenced by \tcode{str}.
1530+
\tcode{traits::eq(\exposid{data_}[xpos], str[I])} for some element \tcode{I} of the string referenced by \tcode{str}.
15311531
\end{itemize}
15321532

15331533
\pnum
@@ -1554,7 +1554,7 @@
15541554
\item
15551555
\tcode{xpos < size()}
15561556
\item
1557-
\tcode{traits::eq(data_[xpos], str[I])} for no element \tcode{I} of the string referenced by \tcode{str}.
1557+
\tcode{traits::eq(\exposid{data_}[xpos], str[I])} for no element \tcode{I} of the string referenced by \tcode{str}.
15581558
\end{itemize}
15591559

15601560
\pnum
@@ -1580,7 +1580,7 @@
15801580
\item
15811581
\tcode{xpos < size()}
15821582
\item
1583-
\tcode{traits::eq(data_[xpos], str[I])} for no element \tcode{I} of the string referenced by \tcode{str}.
1583+
\tcode{traits::eq(\exposid{data_}[xpos], str[I])} for no element \tcode{I} of the string referenced by \tcode{str}.
15841584
\end{itemize}
15851585

15861586
\pnum

0 commit comments

Comments
 (0)