DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
dbpp_FunctionsUtilities.hpp
Go to the documentation of this file.
1#pragma once
2
3// C++ includes
4#include <utility>
5#include <functional>
6
7namespace dbpp
8{
16 template<typename Callable, typename ...Args>
17 decltype(auto) call(Callable&& aCalbl, Args&&... args)
18 {
19 std::invoke(std::forward<Callable>(aCalbl), // call passed to callable with
20 std::forward<Args>(args)...); // all additional passed args
21 }
22}// End of namespace
Definition DamBreakProb.h:15
decltype(auto) call(Callable &&aCalbl, Args &&... args)
call function, member function, lambda
Definition dbpp_FunctionsUtilities.hpp:17