Skip to content

Commit eb94afb

Browse files
[string.access] Use (const_)reference for consistency
with other sequence containers
1 parent 4abacae commit eb94afb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/strings.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,8 +3135,8 @@
31353135

31363136
\indexlibrarymember{front}{basic_string}%
31373137
\begin{itemdecl}
3138-
constexpr const charT& front() const;
3139-
constexpr charT& front();
3138+
constexpr const_reference front() const;
3139+
constexpr reference front();
31403140
\end{itemdecl}
31413141

31423142
\begin{itemdescr}
@@ -3151,8 +3151,8 @@
31513151

31523152
\indexlibrarymember{back}{basic_string}%
31533153
\begin{itemdecl}
3154-
constexpr const charT& back() const;
3155-
constexpr charT& back();
3154+
constexpr const_reference back() const;
3155+
constexpr reference back();
31563156
\end{itemdecl}
31573157

31583158
\begin{itemdescr}

0 commit comments

Comments
 (0)