fork(17) download
  1. template <class F>
  2. struct return_type;
  3.  
  4. template <class R, class... A>
  5. struct return_type<R (*)(A...)>
  6. {
  7. typedef R type;
  8. };
  9.  
  10.  
  11. int main()
  12. {
  13. int (*p)(int, char);
  14. return_type<decltype(p)>::type i = 0;
  15. return i;
  16. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty