Skip to content

Commit 19b236f

Browse files
[lib] Remove redundant typename in default template arguments
Affected sections and components: - [meta.type.synop] - `constant_wrapper` - [format.formattable] - _`formattable-with`_ - [re.syn] - `regex_iterator` - `regex_token_iterator` - [re.regiter.general] - `regex_iterator` - [re.tokiter.general] - `regex_token_iterator` - [simd.syn] - `simd::alignment` - `simd::alignment_v` - [simd.traits] - `simd::alignment` - [time.syn] - `time_point` - [time.point.general] - `time_point`
1 parent a7b71b3 commit 19b236f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

source/meta.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
template<class T>
169169
struct @\exposidnc{cw-fixed-value}@; // \expos
170170

171-
template<@\exposidnc{cw-fixed-value}@ X, class = typename decltype(X)::@\exposid{type}@>
171+
template<@\exposidnc{cw-fixed-value}@ X, class = decltype(X)::@\exposid{type}@>
172172
struct constant_wrapper;
173173

174174
template<class T>

source/numerics.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16497,8 +16497,8 @@
1649716497
\begin{codeblock}
1649816498
namespace std::simd {
1649916499
// \ref{simd.traits}, type traits
16500-
template<class T, class U = typename T::value_type> struct alignment;
16501-
template<class T, class U = typename T::value_type>
16500+
template<class T, class U = T::value_type> struct alignment;
16501+
template<class T, class U = T::value_type>
1650216502
constexpr size_t @\libmember{alignment_v}{simd}@ = alignment<T, U>::value;
1650316503

1650416504
template<class T, class V> struct rebind { using type = @\seebelow@; };
@@ -17142,7 +17142,7 @@
1714217142

1714317143
\indexlibrarymember{alignment}{simd}
1714417144
\begin{itemdecl}
17145-
template<class T, class U = typename T::value_type> struct alignment { @\seebelow@ };
17145+
template<class T, class U = T::value_type> struct alignment { @\seebelow@ };
1714617146
\end{itemdecl}
1714717147

1714817148
\begin{itemdescr}

source/text.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7101,7 +7101,7 @@
71017101

71027102
\begin{codeblock}
71037103
template<class T, class Context,
7104-
class Formatter = typename Context::template formatter_type<remove_const_t<T>>>
7104+
class Formatter = Context::template formatter_type<remove_const_t<T>>>
71057105
concept @\defexposconcept{formattable-with}@ = // \expos
71067106
@\libconcept{semiregular}@<Formatter> &&
71077107
requires(Formatter& f, const Formatter& cf, T&& t, Context fc,
@@ -9554,7 +9554,7 @@
95549554

95559555
// \ref{re.regiter}, class template \tcode{regex_iterator}
95569556
template<class BidirectionalIterator,
9557-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
9557+
class charT = iterator_traits<BidirectionalIterator>::value_type,
95589558
class traits = regex_traits<charT>>
95599559
class regex_iterator;
95609560

@@ -9565,7 +9565,7 @@
95659565

95669566
// \ref{re.tokiter}, class template \tcode{regex_token_iterator}
95679567
template<class BidirectionalIterator,
9568-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
9568+
class charT = iterator_traits<BidirectionalIterator>::value_type,
95699569
class traits = regex_traits<charT>>
95709570
class regex_token_iterator;
95719571

@@ -12247,7 +12247,7 @@
1224712247
\begin{codeblock}
1224812248
namespace std {
1224912249
template<class BidirectionalIterator,
12250-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
12250+
class charT = iterator_traits<BidirectionalIterator>::value_type,
1225112251
class traits = regex_traits<charT>>
1225212252
class regex_iterator {
1225312253
public:
@@ -12518,7 +12518,7 @@
1251812518
\begin{codeblock}
1251912519
namespace std {
1252012520
template<class BidirectionalIterator,
12521-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
12521+
class charT = iterator_traits<BidirectionalIterator>::value_type,
1252212522
class traits = regex_traits<charT>>
1252312523
class regex_token_iterator {
1252412524
public:

source/time.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
template<class Rep, class Period = ratio<1>> class duration;
7272

7373
// \ref{time.point}, class template \tcode{time_point}
74-
template<class Clock, class Duration = typename Clock::duration> class time_point;
74+
template<class Clock, class Duration = Clock::duration> class time_point;
7575
}
7676

7777
namespace std {
@@ -2215,7 +2215,7 @@
22152215
\indexlibraryglobal{time_point}%
22162216
\begin{codeblock}
22172217
namespace std::chrono {
2218-
template<class Clock, class Duration = typename Clock::duration>
2218+
template<class Clock, class Duration = Clock::duration>
22192219
class time_point {
22202220
public:
22212221
using clock = Clock;

0 commit comments

Comments
 (0)