You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 5 години
преди 5 години
123456789101112
  1. #include <iostream>
  2. #include <scope.h>
  3. int main()
  4. {
  5. sr::scope_exit se{[]{}};
  6. sr::scope_fail sf{[]{}};
  7. sr::scope_success ss{[]{}};
  8. sr::unique_resource ur{3, [](auto x){}};
  9. return 0;
  10. }