Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed Mar 10, 2024
1 parent 9893578 commit 049f53c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Framework/Foundation/include/Framework/Pack.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ inline constexpr bool has_type_conditional_v = has_type_conditional<Condition, T
template <typename T, typename... Ts>
consteval std::size_t has_type_at(pack<Ts...> const&)
{
constexpr std::size_t count = []<std::size_t... Is>(std::index_sequence<Is...>) {
constexpr std::size_t count = []<std::size_t... Is>(std::index_sequence<Is...>)
{
return ((std::is_same_v<T, Ts> ? Is + 1 : 0) + ...);
}(std::make_index_sequence<sizeof...(Ts)>());
}
(std::make_index_sequence<sizeof...(Ts)>());
if constexpr (count == 0) {
return sizeof...(Ts) + 1;
} else {
Expand Down

0 comments on commit 049f53c

Please sign in to comment.