Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 348 Bytes

File metadata and controls

17 lines (13 loc) · 348 Bytes

Pre-test


Which lambda function is valid?

  1. []() -> int { return 4; };
  2. int [](){ return 4; };
  3. auto [](){ return 4; };
  4. []() -> auto {return 4; };
  5. [](){ return 4; };
  6. [] { return 4; }
  7. [] mutable { return 4; }
  8. [] -> int { return 4; }
  9. int []{ return 4; }