|
732 | 732 | constexpr size_type find_last_not_of(const charT* s, size_type pos = npos) const;
|
733 | 733 |
|
734 | 734 | private:
|
735 |
| - const_pointer data_; // \expos |
736 |
| - size_type size_; // \expos |
| 735 | + const_pointer @\exposid{data_}@; // \expos |
| 736 | + size_type @\exposid{size_}@; // \expos |
737 | 737 | };
|
738 | 738 |
|
739 | 739 | // \ref{string.view.deduct}, deduction guides
|
|
778 | 778 | \begin{itemdescr}
|
779 | 779 | \pnum
|
780 | 780 | \ensures
|
781 |
| -\tcode{size_ == 0} and \tcode{data_ == nullptr}. |
| 781 | +\tcode{\exposid{size_} == 0} and \tcode{\exposid{data_} == nullptr}. |
782 | 782 | \end{itemdescr}
|
783 | 783 |
|
784 | 784 | \indexlibraryctor{basic_string_view}%
|
|
793 | 793 |
|
794 | 794 | \pnum
|
795 | 795 | \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)}. |
798 | 798 |
|
799 | 799 | \pnum
|
800 | 800 | \complexity
|
|
813 | 813 |
|
814 | 814 | \pnum
|
815 | 815 | \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}. |
818 | 818 | \end{itemdescr}
|
819 | 819 |
|
820 | 820 | \indexlibraryctor{basic_string_view}%
|
|
843 | 843 |
|
844 | 844 | \pnum
|
845 | 845 | \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}. |
848 | 848 |
|
849 | 849 | \pnum
|
850 | 850 | \throws
|
|
880 | 880 |
|
881 | 881 | \pnum
|
882 | 882 | \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)}. |
885 | 885 |
|
886 | 886 | \pnum
|
887 | 887 | \throws
|
|
947 | 947 | \returns
|
948 | 948 | An iterator such that
|
949 | 949 | \begin{itemize}
|
950 |
| -\item if \tcode{!empty()}, \tcode{addressof(*begin()) == data_}, |
| 950 | +\item if \tcode{!empty()}, \tcode{addressof(*begin()) == \exposid{data_}}, |
951 | 951 | \item otherwise, an unspecified value such that \range{begin()}{end()} is a valid range.
|
952 | 952 | \end{itemize}
|
953 | 953 | \end{itemdescr}
|
|
1003 | 1003 | \begin{itemdescr}
|
1004 | 1004 | \pnum
|
1005 | 1005 | \returns
|
1006 |
| -\tcode{size_}. |
| 1006 | +\exposid{size_}. |
1007 | 1007 | \end{itemdescr}
|
1008 | 1008 |
|
1009 | 1009 |
|
|
1026 | 1026 | \begin{itemdescr}
|
1027 | 1027 | \pnum
|
1028 | 1028 | \returns
|
1029 |
| -\tcode{size_ == 0}. |
| 1029 | +\tcode{\exposid{size_} == 0}. |
1030 | 1030 | \end{itemdescr}
|
1031 | 1031 |
|
1032 | 1032 | \rSec3[string.view.access]{Element access}
|
|
1046 | 1046 |
|
1047 | 1047 | \pnum
|
1048 | 1048 | \returns
|
1049 |
| -\tcode{data_[pos]}. |
| 1049 | +\tcode{\exposid{data_}[pos]}. |
1050 | 1050 |
|
1051 | 1051 | \pnum
|
1052 | 1052 | \throws
|
|
1061 | 1061 | \begin{itemdescr}
|
1062 | 1062 | \pnum
|
1063 | 1063 | \returns
|
1064 |
| -\tcode{data_[pos]}. |
| 1064 | +\tcode{\exposid{data_}[pos]}. |
1065 | 1065 |
|
1066 | 1066 | \pnum
|
1067 | 1067 | \throws
|
|
1080 | 1080 |
|
1081 | 1081 | \pnum
|
1082 | 1082 | \returns
|
1083 |
| -\tcode{data_[0]}. |
| 1083 | +\tcode{\exposid{data_}[0]}. |
1084 | 1084 |
|
1085 | 1085 | \pnum
|
1086 | 1086 | \throws
|
|
1099 | 1099 |
|
1100 | 1100 | \pnum
|
1101 | 1101 | \returns
|
1102 |
| -\tcode{data_[size() - 1]}. |
| 1102 | +\tcode{\exposid{data_}[size() - 1]}. |
1103 | 1103 |
|
1104 | 1104 | \pnum
|
1105 | 1105 | \throws
|
|
1114 | 1114 | \begin{itemdescr}
|
1115 | 1115 | \pnum
|
1116 | 1116 | \returns
|
1117 |
| -\tcode{data_}. |
| 1117 | +\exposid{data_}. |
1118 | 1118 |
|
1119 | 1119 | \pnum
|
1120 | 1120 | \begin{note}
|
|
1138 | 1138 |
|
1139 | 1139 | \pnum
|
1140 | 1140 | \effects
|
1141 |
| -Equivalent to: \tcode{data_ += n; size_ -= n;} |
| 1141 | +Equivalent to: \tcode{\exposid{data_} += n; \exposid{size_} -= n;} |
1142 | 1142 | \end{itemdescr}
|
1143 | 1143 |
|
1144 | 1144 | \indexlibrarymember{remove_suffix}{basic_string_view}%
|
|
1153 | 1153 |
|
1154 | 1154 | \pnum
|
1155 | 1155 | \effects
|
1156 |
| -Equivalent to: \tcode{size_ -= n;} |
| 1156 | +Equivalent to: \tcode{\exposid{size_} -= n;} |
1157 | 1157 | \end{itemdescr}
|
1158 | 1158 |
|
1159 | 1159 | \indexlibrarymember{swap}{basic_string_view}%
|
|
1446 | 1446 | \item
|
1447 | 1447 | \tcode{xpos + str.size() <= size()}
|
1448 | 1448 | \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}. |
1450 | 1450 | \end{itemize}
|
1451 | 1451 |
|
1452 | 1452 | \pnum
|
|
1473 | 1473 | \item
|
1474 | 1474 | \tcode{xpos + str.size() <= size()}
|
1475 | 1475 | \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}. |
1477 | 1477 | \end{itemize}
|
1478 | 1478 |
|
1479 | 1479 | \pnum
|
|
1500 | 1500 | \item
|
1501 | 1501 | \tcode{xpos < size()}
|
1502 | 1502 | \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}. |
1504 | 1504 | \end{itemize}
|
1505 | 1505 |
|
1506 | 1506 | \pnum
|
|
1527 | 1527 | \item
|
1528 | 1528 | \tcode{xpos < size()}
|
1529 | 1529 | \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}. |
1531 | 1531 | \end{itemize}
|
1532 | 1532 |
|
1533 | 1533 | \pnum
|
|
1554 | 1554 | \item
|
1555 | 1555 | \tcode{xpos < size()}
|
1556 | 1556 | \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}. |
1558 | 1558 | \end{itemize}
|
1559 | 1559 |
|
1560 | 1560 | \pnum
|
|
1580 | 1580 | \item
|
1581 | 1581 | \tcode{xpos < size()}
|
1582 | 1582 | \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}. |
1584 | 1584 | \end{itemize}
|
1585 | 1585 |
|
1586 | 1586 | \pnum
|
|
0 commit comments