Skip to content

Commit

Permalink
refactor(src/core/types.hh): introduce 'Function' alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Mar 19, 2024
1 parent 2ceb538 commit f343500
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/types.hh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ namespace SSC {
template <typename T, int k> using Array = std::array<T, k>;
template <typename T> using Queue = std::queue<T>;
template <typename T> using Vector = std::vector<T>;
template <typename T> using Function = std::function<T>;

using ExitCallback = std::function<void(int code)>;
using MessageCallback = std::function<void(const String)>;
using ExitCallback = Function<void(int code)>;
using MessageCallback = Function<void(const String)>;
}

#endif

0 comments on commit f343500

Please sign in to comment.