Skip to content

[strings] Consistently spell return types #8107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions source/strings.tex
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@
constexpr const_reference at(size_type pos) const; // freestanding-deleted
constexpr const_reference front() const;
constexpr const_reference back() const;
constexpr const_pointer data() const noexcept;
constexpr const charT* data() const noexcept;

// \ref{string.view.modifiers}, modifiers
constexpr void remove_prefix(size_type n);
Expand Down Expand Up @@ -734,7 +734,7 @@
constexpr size_type find_last_not_of(const charT* s, size_type pos = npos) const;

private:
const_pointer @\exposid{data_}@; // \expos
const charT* @\exposid{data_}@; // \expos
size_type @\exposid{size_}@; // \expos
};

Expand Down Expand Up @@ -1110,7 +1110,7 @@

\indexlibrarymember{data}{basic_string_view}%
\begin{itemdecl}
constexpr const_pointer data() const noexcept;
constexpr const charT* data() const noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand Down Expand Up @@ -2131,10 +2131,10 @@
constexpr const_reference at(size_type n) const;
constexpr reference at(size_type n);

constexpr const charT& front() const;
constexpr charT& front();
constexpr const charT& back() const;
constexpr charT& back();
constexpr const_reference front() const;
constexpr reference front();
constexpr const_reference back() const;
constexpr reference back();

// \ref{string.modifiers}, modifiers
constexpr basic_string& operator+=(const basic_string& str);
Expand Down Expand Up @@ -2238,7 +2238,7 @@
// \ref{string.ops}, string operations
constexpr const charT* c_str() const noexcept;
constexpr const charT* data() const noexcept;
constexpr charT* data() noexcept;
constexpr charT* data() noexcept;
constexpr operator basic_string_view<charT, traits>() const noexcept;
constexpr allocator_type get_allocator() const noexcept;

Expand Down Expand Up @@ -3135,8 +3135,8 @@

\indexlibrarymember{front}{basic_string}%
\begin{itemdecl}
constexpr const charT& front() const;
constexpr charT& front();
constexpr const_reference front() const;
constexpr reference front();
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -3151,8 +3151,8 @@

\indexlibrarymember{back}{basic_string}%
\begin{itemdecl}
constexpr const charT& back() const;
constexpr charT& back();
constexpr const_reference back() const;
constexpr reference back();
\end{itemdecl}

\begin{itemdescr}
Expand Down