Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions source/compatibility.tex
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@

\diffref{istream.unformatted}
\change
Overloaded \tcode{std::basic_istream<char, traits>::ignore}.
Overloaded \tcode{std::basic_istream<char, Traits>::ignore}.
\rationale
Allow \tcode{char} values to be used as delimiters.
\effect
Expand Down Expand Up @@ -810,7 +810,7 @@
\change
Removed the \tcode{formatter} specialization:
\begin{codeblock}
template<size_t N> struct formatter<const charT[N], charT>;
template<size_t N> struct formatter<const CharT[N], CharT>;
\end{codeblock}
\rationale
The specialization is inconsistent with the design of \tcode{formatter},
Expand Down
30 changes: 15 additions & 15 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9879,8 +9879,8 @@
template<class Allocator> struct hash<vector<bool, Allocator>>;

// \ref{vector.bool.fmt}, formatter specialization for \tcode{vector<bool>}
template<class T, class charT> requires @\exposid{is-vector-bool-reference}@<T>
struct formatter<T, charT>;
template<class T, class CharT> requires @\exposid{is-vector-bool-reference}@<T>
struct formatter<T, CharT>;
}
\end{codeblock}

Expand Down Expand Up @@ -10773,11 +10773,11 @@
\indexlibraryglobal{formatter}%
\begin{codeblock}
namespace std {
template<class T, class charT>
template<class T, class CharT>
requires @\exposid{is-vector-bool-reference}@<T>
struct formatter<T, charT> {
struct formatter<T, CharT> {
private:
formatter<bool, charT> @\exposid{underlying_}@; // \expos
formatter<bool, CharT> @\exposid{underlying_}@; // \expos

public:
template<class ParseContext>
Expand Down Expand Up @@ -15801,8 +15801,8 @@
struct uses_allocator<queue<T, Container>, Alloc>;

// \ref{container.adaptors.format}, formatter specialization for \tcode{queue}
template<class charT, class T, @\libconcept{formattable}@<charT> Container>
struct formatter<queue<T, Container>, charT>;
template<class CharT, class T, @\libconcept{formattable}@<CharT> Container>
struct formatter<queue<T, Container>, CharT>;

template<class T, class Container>
constexpr bool enable_nonlocking_formatter_optimization<queue<T, Container>> = false;
Expand All @@ -15819,8 +15819,8 @@
struct uses_allocator<priority_queue<T, Container, Compare>, Alloc>;

// \ref{container.adaptors.format}, formatter specialization for \tcode{priority_queue}
template<class charT, class T, @\libconcept{formattable}@<charT> Container, class Compare>
struct formatter<priority_queue<T, Container, Compare>, charT>;
template<class CharT, class T, @\libconcept{formattable}@<CharT> Container, class Compare>
struct formatter<priority_queue<T, Container, Compare>, CharT>;

template<class T, class Container, class Compare>
constexpr bool
Expand Down Expand Up @@ -16734,8 +16734,8 @@
struct uses_allocator<stack<T, Container>, Alloc>;

// \ref{container.adaptors.format}, formatter specialization for \tcode{stack}
template<class charT, class T, @\libconcept{formattable}@<charT> Container>
struct formatter<stack<T, Container>, charT>;
template<class CharT, class T, @\libconcept{formattable}@<CharT> Container>
struct formatter<stack<T, Container>, CharT>;

template<class T, class Container>
constexpr bool enable_nonlocking_formatter_optimization<stack<T, Container>> = false;
Expand Down Expand Up @@ -20450,15 +20450,15 @@
\indexlibraryglobal{formatter}%
\begin{codeblock}
namespace std {
template<class charT, class T, @\libconcept{formattable}@<charT> Container, class... U>
struct formatter<@\placeholder{adaptor-type}@<T, Container, U...>, charT> {
template<class CharT, class T, @\libconcept{formattable}@<CharT> Container, class... U>
struct formatter<@\placeholder{adaptor-type}@<T, Container, U...>, CharT> {
private:
using @\exposid{maybe-const-container}@ = // \expos
@\exposid{fmt-maybe-const}@<Container, charT>;
@\exposid{fmt-maybe-const}@<Container, CharT>;
using @\exposid{maybe-const-adaptor}@ = // \expos
@\exposid{maybe-const}@<is_const_v<@\exposid{maybe-const-container}@>, // see \ref{ranges.syn}
@\placeholder{adaptor-type}@<T, Container, U...>>;
formatter<ranges::ref_view<@\exposid{maybe-const-container}@>, charT> @\exposid{underlying_}@; // \expos
formatter<ranges::ref_view<@\exposid{maybe-const-container}@>, CharT> @\exposid{underlying_}@; // \expos

public:
template<class ParseContext>
Expand Down
40 changes: 20 additions & 20 deletions source/diagnostics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,9 @@
// \ref{syserr.errcode.nonmembers}, non-member functions
error_code make_error_code(errc e) noexcept;

template<class charT, class traits>
basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>& os, const error_code& ec);
template<class CharT, class Traits>
basic_ostream<CharT, Traits>&
operator<<(basic_ostream<CharT, Traits>& os, const error_code& ec);

// \ref{syserr.errcondition.nonmembers}, non-member functions
error_condition make_error_condition(errc e) noexcept;
Expand All @@ -766,7 +766,7 @@
constexpr bool @\libglobal{is_error_condition_enum_v}@ = is_error_condition_enum<T>::value;

// \ref{syserr.fmt}, formatter
template<class T> struct formatter<error_code, charT>;
template<class T> struct formatter<error_code, CharT>;
}
\end{codeblock}

Expand Down Expand Up @@ -1056,9 +1056,9 @@
// \ref{syserr.errcode.nonmembers}, non-member functions
error_code make_error_code(errc e) noexcept;

template<class charT, class traits>
basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>& os, const error_code& ec);
template<class CharT, class Traits>
basic_ostream<CharT, Traits>&
operator<<(basic_ostream<CharT, Traits>& os, const error_code& ec);
}
\end{codeblock}

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

\indexlibrarymember{operator<<}{error_code}%
\begin{itemdecl}
template<class charT, class traits>
basic_ostream<charT, traits>& operator<<(basic_ostream<charT, traits>& os, const error_code& ec);
template<class CharT, class Traits>
basic_ostream<CharT, Traits>& operator<<(basic_ostream<CharT, Traits>& os, const error_code& ec);
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1244,16 +1244,16 @@
\pnum
\indexlibraryglobal{formatter}%
\begin{codeblock}
template<class charT>
struct formatter<error_code, charT> {
template<class CharT>
struct formatter<error_code, CharT> {
constexpr void set_debug_format();

constexpr typename basic_format_parse_context<charT>::iterator
parse(basic_format_parse_context<charT>& ctx);
constexpr typename basic_format_parse_context<CharT>::iterator
parse(basic_format_parse_context<CharT>& ctx);

template<class Out>
typename basic_format_context<Out, charT>::iterator
format(const error_code& ec, basic_format_context<Out, charT>& ctx) const;
typename basic_format_context<Out, CharT>::iterator
format(const error_code& ec, basic_format_context<Out, CharT>& ctx) const;
};
\end{codeblock}

Expand All @@ -1272,8 +1272,8 @@

\indexlibrarymember{parse}{formatter}%
\begin{itemdecl}
constexpr typename basic_format_parse_context<charT>::iterator
parse(basic_format_parse_context<charT>& ctx);
constexpr typename basic_format_parse_context<CharT>::iterator
parse(basic_format_parse_context<CharT>& ctx);
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1297,8 +1297,8 @@
\indexlibrarymember{format}{formatter}%
\begin{itemdecl}
template<class Out>
typename basic_format_context<Out, charT>::iterator
format(const error_code& ec, basic_format_context<Out, charT>& ctx) const;
typename basic_format_context<Out, CharT>::iterator
format(const error_code& ec, basic_format_context<Out, CharT>& ctx) const;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1307,7 +1307,7 @@
If the \tcode{s} option is used, then:
\begin{itemize}
\item
If \tcode{charT} is \tcode{char} and the ordinary literal encoding is UTF-8,
If \tcode{CharT} is \tcode{char} and the ordinary literal encoding is UTF-8,
then let \tcode{msg} be \tcode{ec.message()} transcoded to UTF-8
with maximal subparts of ill-formed subsequences
substituted with \unicode{fffd}{replacement character}
Expand Down
40 changes: 20 additions & 20 deletions source/future.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1088,10 +1088,10 @@
The header \libheaderref{istream} has the following additions:

\begin{itemdecl}
template<class traits>
basic_istream<char, traits>& operator>>(basic_istream<char, traits>& in, unsigned char& c);
template<class traits>
basic_istream<char, traits>& operator>>(basic_istream<char, traits>& in, signed char& c);
template<class Traits>
basic_istream<char, Traits>& operator>>(basic_istream<char, Traits>& in, unsigned char& c);
template<class Traits>
basic_istream<char, Traits>& operator>>(basic_istream<char, Traits>& in, signed char& c);
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1113,10 +1113,10 @@

\pnum
\begin{itemdecl}
template<class traits, size_t N>
basic_istream<char, traits>& operator>>(basic_istream<char, traits>& in, unsigned char (&s)[N]);
template<class traits, size_t N>
basic_istream<char, traits>& operator>>(basic_istream<char, traits>& in, signed char (&s)[N]);
template<class Traits, size_t N>
basic_istream<char, Traits>& operator>>(basic_istream<char, Traits>& in, unsigned char (&s)[N]);
template<class Traits, size_t N>
basic_istream<char, Traits>& operator>>(basic_istream<char, Traits>& in, signed char (&s)[N]);
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1137,12 +1137,12 @@
\begin{itemize}
\item \tcode{n - 1} characters are stored;
\item end of file occurs on the input sequence;
\item letting \tcode{ct} be \tcode{use_facet<ctype<charT>>(in.getloc())}, \tcode{ct.is(ct.space, s)}
\item letting \tcode{ct} be \tcode{use_facet<ctype<CharT>>(in.getloc())}, \tcode{ct.is(ct.space, s)}
is \tcode{true}.
\end{itemize}

\pnum
\tcode{operator>>} then stores a null byte (\tcode{charT()}) in the next position,
\tcode{operator>>} then stores a null byte (\tcode{CharT()}) in the next position,
which may be the first position if no characters were extracted.
\tcode{operator>>} then calls \tcode{width(0)}.

Expand All @@ -1162,10 +1162,10 @@

\pnum
\begin{itemdecl}
template<class traits>
basic_ostream<char, traits>& operator<<(basic_ostream<char, traits>& out, signed char c);
template<class traits>
basic_ostream<char, traits>& operator<<(basic_ostream<char, traits>& out, unsigned char c);
template<class Traits>
basic_ostream<char, Traits>& operator<<(basic_ostream<char, Traits>& out, signed char c);
template<class Traits>
basic_ostream<char, Traits>& operator<<(basic_ostream<char, Traits>& out, unsigned char c);
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1176,12 +1176,12 @@

\pnum
\begin{itemdecl}
template<class traits>
basic_ostream<char, traits>&
operator<<(basic_ostream<char, traits>& out, const signed char* s);
template<class traits>
basic_ostream<char, traits>&
operator<<(basic_ostream<char, traits>& out, const unsigned char* s);
template<class Traits>
basic_ostream<char, Traits>&
operator<<(basic_ostream<char, Traits>& out, const signed char* s);
template<class Traits>
basic_ostream<char, Traits>&
operator<<(basic_ostream<char, Traits>& out, const unsigned char* s);
\end{itemdecl}

\begin{itemdescr}
Expand Down
2 changes: 1 addition & 1 deletion source/intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
\termref{defns.character}{character}{} type
that precede the terminating null character type
value
\tcode{charT()}
\tcode{CharT()}

\definition{observer function}{defns.observer}
\defncontext{library}
Expand Down
Loading
Loading