diff options
author | Chris Robinson <[email protected]> | 2019-09-29 16:02:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-29 16:02:25 -0700 |
commit | 94ff2daafc071168a69d7af3694f0ab3126dddc0 (patch) | |
tree | 8b10ff0f37b346326ae8c1ff15c0b15a44787303 /common/alspan.h | |
parent | fabb9add9b28b323ea6a882a3c7084e7638b7d09 (diff) |
Use using to avoid extraneous template instantiations
Diffstat (limited to 'common/alspan.h')
-rw-r--r-- | common/alspan.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/alspan.h b/common/alspan.h index 2e0fb027..42e3523e 100644 --- a/common/alspan.h +++ b/common/alspan.h @@ -57,14 +57,14 @@ namespace detail_ { template<typename T, size_t E> struct is_span_<span<T,E>> : std::true_type { }; template<typename T> - struct is_span : is_span_<typename std::remove_cv<T>::type> { }; + using is_span = is_span_<typename std::remove_cv<T>::type>; template<typename T> struct is_std_array_ : std::false_type { }; template<typename T, size_t N> struct is_std_array_<std::array<T,N>> : std::true_type { }; template<typename T> - struct is_std_array : is_std_array_<typename std::remove_cv<T>::type> { }; + using is_std_array = is_std_array_<typename std::remove_cv<T>::type>; template<typename T, typename = void> struct has_size_and_data : std::false_type { }; |