You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL][NFC] Improve type traits' usage in headers & runtime (#2768)
The patch aims to:
1. Facilitate consistent usage of type traits accross the SYCL library.
2. Make a potential switch to C++14 STL type traits easier to perform.
The following traits were affected:
- `enable_if`
- `remove_const`
- `remove_reference`
- `conditional`
- `remove_pointer`
- `remove_cv`
An overview of the changes:
1. Wherever possible, `std::[trait]<>::type` usages were replaced with
`detail::[trait]_t<>`.
2. The corresponding `std::[trait]_t<>` usages were also replaced, as we're
still supposed to comply with C++11.
3. The type traits-related `#include` directives were slightly re-organized with
some removal of obsolete ones.
4. Some duplicating code was removed from `detail/stl_type_traits.hpp`.
Signed-off-by: Artem Gindinson <[email protected]>
0 commit comments