Skip to content

Commit

Permalink
add space at function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSinn committed Jan 23, 2024
1 parent aa4e9e3 commit 9cf9802
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Reduce.H
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ bool AnyOf (Box const& box, P&&pred)
template <typename... Ts, typename... Ps>
AMREX_GPU_HOST_DEVICE
constexpr GpuTuple<Ts...>
IdentityTuple(GpuTuple<Ts...>, ReduceOps<Ps...>) noexcept
IdentityTuple (GpuTuple<Ts...>, ReduceOps<Ps...>) noexcept
{
GpuTuple<Ts...> r{};
Reduce::detail::for_each_init<0, decltype(r), Ps...>(r);
Expand Down
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Tuple.H
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ ForwardAsTuple (Ts&&... args) noexcept
template <typename... Ts>
AMREX_GPU_HOST_DEVICE
constexpr GpuTuple<Ts...>
MakeZeroTuple(GpuTuple<Ts...>) noexcept
MakeZeroTuple (GpuTuple<Ts...>) noexcept
{
return GpuTuple<Ts...>(static_cast<Ts>(0)...);
}
Expand Down
8 changes: 4 additions & 4 deletions Src/Base/AMReX_TypeList.H
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ constexpr auto CartesianProduct (Ls...) {
namespace detail {
// return TypeList<T, T, T, T, ... (N times)> by using the fast power algorithm
template <class T, std::size_t N>
constexpr auto SingleTypeMultiplier_impl() {
constexpr auto SingleTypeMultiplier_impl () {
if constexpr (N == 0) {
return TypeList<>{};
} else if constexpr (N == 1) {
Expand All @@ -169,19 +169,19 @@ namespace detail {
// overload of SingleTypeMultiplier for multiple types:
// convert T[N] to T, T, T, T, ... (N times with N >= 1)
template <class T, std::size_t N>
constexpr auto SingleTypeMultiplier(const T (&)[N]) {
constexpr auto SingleTypeMultiplier (const T (&)[N]) {
return SingleTypeMultiplier_impl<T, N>();
}

// overload of SingleTypeMultiplier for one regular type
template <class T>
constexpr auto SingleTypeMultiplier(T) {
constexpr auto SingleTypeMultiplier (T) {
return TypeList<T>{};
}

// apply the types of the input TypeList as template arguments to TParam
template <template <class...> class TParam, class... Args>
constexpr auto TApply(TypeList<Args...>) {
constexpr auto TApply (TypeList<Args...>) {
return TypeList<TParam<Args...>>{};
}
}
Expand Down

0 comments on commit 9cf9802

Please sign in to comment.