Skip to content

Commit 9451d9d

Browse files
committed
[libc++][NFC] s/enable_if<...>::type/enable_if_t<...> in span
There is some use of `enable_if<...>::type` when the rest of the file uses `enable_if_t`. So, use `enable_if_t` consistently throughout.
1 parent 283ed7d commit 9451d9d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcxx/include/span

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,19 +179,19 @@ template <class _Tp, class _ElementType>
179179
struct __is_span_compatible_container<_Tp, _ElementType,
180180
void_t<
181181
// is not a specialization of span
182-
typename enable_if<!__is_span<_Tp>::value, nullptr_t>::type,
182+
enable_if_t<!__is_span<_Tp>::value, nullptr_t>,
183183
// is not a specialization of array
184-
typename enable_if<!__is_std_array<_Tp>::value, nullptr_t>::type,
184+
enable_if_t<!__is_std_array<_Tp>::value, nullptr_t>,
185185
// is_array_v<Container> is false,
186-
typename enable_if<!is_array_v<_Tp>, nullptr_t>::type,
186+
enable_if_t<!is_array_v<_Tp>, nullptr_t>,
187187
// data(cont) and size(cont) are well formed
188188
decltype(data(declval<_Tp>())),
189189
decltype(size(declval<_Tp>())),
190190
// remove_pointer_t<decltype(data(cont))>(*)[] is convertible to ElementType(*)[]
191-
typename enable_if<
191+
enable_if_t<
192192
is_convertible_v<remove_pointer_t<decltype(data(declval<_Tp &>()))>(*)[],
193193
_ElementType(*)[]>,
194-
nullptr_t>::type
194+
nullptr_t>
195195
>>
196196
: public true_type {};
197197

0 commit comments

Comments
 (0)