Using function_traits