[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.
This commit is contained in:
Joe Loser 2021-09-27 19:18:46 -04:00
parent 283ed7de32
commit 9451d9da95
No known key found for this signature in database
GPG Key ID: 1CDBEBC050EA230D
1 changed files with 5 additions and 5 deletions

View File

@ -179,19 +179,19 @@ template <class _Tp, class _ElementType>
struct __is_span_compatible_container<_Tp, _ElementType,
void_t<
// is not a specialization of span
typename enable_if<!__is_span<_Tp>::value, nullptr_t>::type,
enable_if_t<!__is_span<_Tp>::value, nullptr_t>,
// is not a specialization of array
typename enable_if<!__is_std_array<_Tp>::value, nullptr_t>::type,
enable_if_t<!__is_std_array<_Tp>::value, nullptr_t>,
// is_array_v<Container> is false,
typename enable_if<!is_array_v<_Tp>, nullptr_t>::type,
enable_if_t<!is_array_v<_Tp>, nullptr_t>,
// data(cont) and size(cont) are well formed
decltype(data(declval<_Tp>())),
decltype(size(declval<_Tp>())),
// remove_pointer_t<decltype(data(cont))>(*)[] is convertible to ElementType(*)[]
typename enable_if<
enable_if_t<
is_convertible_v<remove_pointer_t<decltype(data(declval<_Tp &>()))>(*)[],
_ElementType(*)[]>,
nullptr_t>::type
nullptr_t>
>>
: public true_type {};