Skip to content

Commit b24dc63

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 166fd7e commit b24dc63

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
@@ -209,7 +209,7 @@
209209
template<class T>
210210
struct @\exposidnc{cw-fixed-value}@; // \expos
211211

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

215215
template<class T>

source/numerics.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16829,8 +16829,8 @@
1682916829
\begin{codeblock}
1683016830
namespace std::simd {
1683116831
// \ref{simd.traits}, type traits
16832-
template<class T, class U = typename T::value_type> struct alignment;
16833-
template<class T, class U = typename T::value_type>
16832+
template<class T, class U = T::value_type> struct alignment;
16833+
template<class T, class U = T::value_type>
1683416834
constexpr size_t @\libmember{alignment_v}{simd}@ = alignment<T, U>::value;
1683516835

1683616836
template<class T, class V> struct rebind { using type = @\seebelow@; };
@@ -17470,7 +17470,7 @@
1747017470

1747117471
\indexlibrarymember{alignment}{simd}
1747217472
\begin{itemdecl}
17473-
template<class T, class U = typename T::value_type> struct alignment { @\seebelow@ };
17473+
template<class T, class U = T::value_type> struct alignment { @\seebelow@ };
1747417474
\end{itemdecl}
1747517475

1747617476
\begin{itemdescr}

source/text.tex

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

71217121
\begin{codeblock}
71227122
template<class T, class Context,
7123-
class Formatter = typename Context::template formatter_type<remove_const_t<T>>>
7123+
class Formatter = Context::template formatter_type<remove_const_t<T>>>
71247124
concept @\defexposconcept{formattable-with}@ = // \expos
71257125
@\libconcept{semiregular}@<Formatter> &&
71267126
requires(Formatter& f, const Formatter& cf, T&& t, Context fc,
@@ -9588,7 +9588,7 @@
95889588

95899589
// \ref{re.regiter}, class template \tcode{regex_iterator}
95909590
template<class BidirectionalIterator,
9591-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
9591+
class charT = iterator_traits<BidirectionalIterator>::value_type,
95929592
class traits = regex_traits<charT>>
95939593
class regex_iterator;
95949594

@@ -9599,7 +9599,7 @@
95999599

96009600
// \ref{re.tokiter}, class template \tcode{regex_token_iterator}
96019601
template<class BidirectionalIterator,
9602-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
9602+
class charT = iterator_traits<BidirectionalIterator>::value_type,
96039603
class traits = regex_traits<charT>>
96049604
class regex_token_iterator;
96059605

@@ -12281,7 +12281,7 @@
1228112281
\begin{codeblock}
1228212282
namespace std {
1228312283
template<class BidirectionalIterator,
12284-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
12284+
class charT = iterator_traits<BidirectionalIterator>::value_type,
1228512285
class traits = regex_traits<charT>>
1228612286
class regex_iterator {
1228712287
public:
@@ -12552,7 +12552,7 @@
1255212552
\begin{codeblock}
1255312553
namespace std {
1255412554
template<class BidirectionalIterator,
12555-
class charT = typename iterator_traits<BidirectionalIterator>::value_type,
12555+
class charT = iterator_traits<BidirectionalIterator>::value_type,
1255612556
class traits = regex_traits<charT>>
1255712557
class regex_token_iterator {
1255812558
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 {
@@ -2213,7 +2213,7 @@
22132213
\indexlibraryglobal{time_point}%
22142214
\begin{codeblock}
22152215
namespace std::chrono {
2216-
template<class Clock, class Duration = typename Clock::duration>
2216+
template<class Clock, class Duration = Clock::duration>
22172217
class time_point {
22182218
public:
22192219
using clock = Clock;

0 commit comments

Comments
 (0)