Skip to content

Commit

Permalink
[pre-commit.ci] auto code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed May 3, 2024
1 parent 835cea3 commit bff1381
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libcudacxx/test/libcudacxx/heterogeneous/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ DEFINE_ASYNC_TRAIT(_validate)
#undef DEFINE_ASYNC_TRAIT

template <typename T, typename = int>
struct has_threadcount : std::false_type { };
struct has_threadcount : std::false_type
{};
template <typename T>
struct has_threadcount <T, decltype((void) T::threadcount, (int)0)> : std::true_type {};
struct has_threadcount<T, decltype((void) T::threadcount, (int) 0)> : std::true_type
{};

template <typename T, bool = has_threadcount<T>::value>
struct threadcount_trait_impl
Expand Down

0 comments on commit bff1381

Please sign in to comment.