Skip to content

Commit

Permalink
consistancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Jul 24, 2024
1 parent 5eb09e1 commit 9ee7fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xprof/btx_tally.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ auto aggregate_by_name(std::unordered_map<std::tuple<T...>, TC> &m) {
*/

// Base case to stop recursion
inline void _get_uniq_tally(std::set<std::tuple<>>, std::vector<size_t> &) {}
inline void _get_uniq_tally(std::set<std::tuple<>> &, std::vector<size_t> &) {}
// General recursive case
template <class... T> void _get_uniq_tally(std::set<std::tuple<T...>> &s, std::vector<size_t> &v) {
v.push_back(s.size());
Expand All @@ -157,7 +157,7 @@ template <class... T> void _get_uniq_tally(std::set<std::tuple<T...>> &s, std::v
s_reduced.insert(make_tuple_without_last(t));
_get_uniq_tally(s_reduced, v);
}
// Exposed Class
// Exposed function
template <class... T, class K> auto get_uniq_tally(std::unordered_map<std::tuple<T...>, K> &m) {
// Map to Set. Can remove the last elements who is the `api name`
typedef decltype(make_tuple_without_last(std::declval<std::tuple<T...>>())) Minusone;
Expand Down

0 comments on commit 9ee7fac

Please sign in to comment.