fork(1) download
  1. #include <functional>
  2.  
  3. template <typename T>
  4. struct function_remove_const;
  5.  
  6. template <typename R, typename... Args>
  7. struct function_remove_const<R(Args...)>
  8. {
  9. using type = R(Args...);
  10. };
  11.  
  12. template <typename R, typename... Args>
  13. struct function_remove_const<R(Args...)const>
  14. {
  15. using type = R(Args...);
  16. };
  17.  
  18. int main()
  19. {
  20. std::function<function_remove_const<double(float)const>::type> f;
  21. }
  22.  
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty