1 #ifndef art_Framework_Services_Registry_detail_makeWatchFunc_h 2 #define art_Framework_Services_Registry_detail_makeWatchFunc_h 14 template <
typename T,
typename ResultType,
typename... Args>
15 std::function<ResultType(Args...)>
18 return [slot, &t](Args&&... args) -> ResultType {
19 return (t.*slot)(std::forward<Args>(args)...);
23 template <
typename T,
typename ResultType,
typename... Args>
24 std::function<ResultType(Args...)>
27 return [slot, &t](Args&&... args) -> ResultType {
28 return (t.*slot)(std::forward<Args>(args)...);
std::function< ResultType(Args...)> makeWatchFunc(ResultType(T::*slot)(Args...), T &t)