diff --git a/sycl/include/sycl/detail/generic_type_traits.hpp b/sycl/include/sycl/detail/generic_type_traits.hpp index a97a23c688cb9..b3e8961865815 100644 --- a/sycl/include/sycl/detail/generic_type_traits.hpp +++ b/sycl/include/sycl/detail/generic_type_traits.hpp @@ -299,7 +299,8 @@ struct convert_data_type_impl::value, T>> { template using convert_data_type = convert_data_type_impl; -// Try to get pointer_t (legacy) or pointer, otherwise T +// TryToGetPointerT::type is T::pointer_t (legacy) or T::pointer if those +// exist, otherwise T. template class TryToGetPointerT { static T check(...); template static typename A::pointer_t check(const A &); @@ -311,7 +312,8 @@ template class TryToGetPointerT { std::is_pointer::value || !std::is_same::value; }; -// Try to get element_type or value_type, otherwise T +// TryToGetElementType::type is T::element_type or T::value_type if those +// exist, otherwise T. template class TryToGetElementType { static T check(...); template static typename A::element_type check(const A &); @@ -322,7 +324,7 @@ template class TryToGetElementType { static constexpr bool value = !std::is_same::value; }; -// Try to get vector_t, otherwise T +// TryToGetVectorT::type is T::vector_t if that exists, otherwise T. template class TryToGetVectorT { static T check(...); template static typename A::vector_t check(const A &);