fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. // Signal.h
  5. #include <thread>
  6. class Signal
  7. {
  8. template<typename ...Args>
  9. void send_t(Args... p) {
  10. /*for(auto it : _slots) {
  11.   it.second(p...);
  12.   }*/
  13. }
  14.  
  15. template<typename ...Args>
  16. void send(Args... p){
  17. std::thread t(this->send_t, this, p...);
  18. t.join();
  19. }
  20. };
  21.  
  22. int main() {
  23. // your code goes here
  24. return 0;
  25. }
Success #stdin #stdout 0s 4196KB
stdin
Standard input is empty
stdout
Standard output is empty