fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<typename Key>
  5. struct FnContainer
  6. {
  7. static void fn(){}
  8. };
  9.  
  10. // as a macro
  11. #define MAKE_CONTAINER(name)\
  12. using name = FnContainer<struct name_Tag>
  13.  
  14. int main() {
  15. MAKE_CONTAINER(Foo);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty