fork download
  1. #include <functional>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. volatile bool runtime_flag = true;
  8. function<bool(int)> predicate;
  9. if(runtime_flag)
  10. predicate = [](int){ return false; };
  11. else
  12. predicate = [](int){ return true; };
  13. }
Success #stdin #stdout 0s 3424KB
stdin
Standard input is empty
stdout
Standard output is empty