fork download
  1. template<
  2. typename Handler,
  3. bool IsConst = false>
  4. struct Signature
  5. {
  6. typedef std::string(Handler::*type)(int);
  7. };
  8.  
  9. template <typename Handler>
  10. struct Signature<Handler, true>
  11. {
  12. typedef std::string(Handler::*type)(int) const;
  13. };
  14.  
  15. template <
  16. typename Handler,
  17. typename Signature<Handler, false>::type Operator>
  18. struct IsImmutable
  19. {
  20. static const bool value = false;
  21. };
  22.  
  23. template <
  24. typename Handler,
  25. typename Signature<Handler, true>::type Operator>
  26. struct IsImmutable<Handler, Operator>
  27. {
  28. static const bool value = true;
  29. };
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty