Skip to content

Commit b9dd79b

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 ff706ad commit b9dd79b

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
@@ -7105,7 +7105,7 @@
71057105

71067106
\begin{codeblock}
71077107
template<class T, class Context,
7108-
class Formatter = typename Context::template formatter_type<remove_const_t<T>>>
7108+
class Formatter = Context::template formatter_type<remove_const_t<T>>>
71097109
concept @\defexposconcept{formattable-with}@ = // \expos
71107110
@\libconcept{semiregular}@<Formatter> &&
71117111
requires(Formatter& f, const Formatter& cf, T&& t, Context fc,
@@ -9561,7 +9561,7 @@
95619561

95629562
// \ref{re.regiter}, class template \tcode{regex_iterator}
95639563
template<class BidirectionalIterator,
9564-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
9564+
class charT = iterator_traits<BidirectionalIterator>::value_type,
95659565
class traits = regex_traits<charT>>
95669566
class regex_iterator;
95679567

@@ -9572,7 +9572,7 @@
95729572

95739573
// \ref{re.tokiter}, class template \tcode{regex_token_iterator}
95749574
template<class BidirectionalIterator,
9575-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
9575+
class charT = iterator_traits<BidirectionalIterator>::value_type,
95769576
class traits = regex_traits<charT>>
95779577
class regex_token_iterator;
95789578

@@ -12254,7 +12254,7 @@
1225412254
\begin{codeblock}
1225512255
namespace std {
1225612256
template<class BidirectionalIterator,
12257-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
12257+
class charT = iterator_traits<BidirectionalIterator>::value_type,
1225812258
class traits = regex_traits<charT>>
1225912259
class regex_iterator {
1226012260
public:
@@ -12525,7 +12525,7 @@
1252512525
\begin{codeblock}
1252612526
namespace std {
1252712527
template<class BidirectionalIterator,
12528-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
12528+
class charT = iterator_traits<BidirectionalIterator>::value_type,
1252912529
class traits = regex_traits<charT>>
1253012530
class regex_token_iterator {
1253112531
public:

source/time.tex

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

6767
// \ref{time.point}, class template \tcode{time_point}
68-
template<class Clock, class Duration = typename Clock::duration> class time_point;
68+
template<class Clock, class Duration = Clock::duration> class time_point;
6969
}
7070

7171
namespace std {
@@ -2209,7 +2209,7 @@
22092209
\indexlibraryglobal{time_point}%
22102210
\begin{codeblock}
22112211
namespace std::chrono {
2212-
template<class Clock, class Duration = typename Clock::duration>
2212+
template<class Clock, class Duration = Clock::duration>
22132213
class time_point {
22142214
public:
22152215
using clock = Clock;

0 commit comments

Comments
 (0)