CPSC 421 OOP Lambda Functions

123456789101112131415161718
Across
  1. 4. The [] in the lambda expression [](int n1, int n2)->bool {}
  2. 6. The lambda function: [](int n1, int n2)->bool { return n1 < n2; } is an example of a ____ comparison
  3. 7. The {} in the lambda expression [](int n1, int n2)->bool {}
  4. 9. A function pointer is slightly _____ than a direct call
  5. 11. Lambda functions are very efficient and very _____
  6. 13. The lambda function: [](char& c) { c = std::toupper(c); } uses an ____ parameter
  7. 14. The lambda function: [](char c) { std::cout << c; } uses an __ parameter
  8. 15. The () in the lambda expression [](int n1, int n2)->bool {}
  9. 16. Function often cannot be _____ close to where they are used
  10. 17. For a function pointer, the function must be ______ before it is passed
  11. 18. Originated from Church's lambda _______
Down
  1. 1. A C function for sorting that uses a function pointer for comparison
  2. 2. The lambda function: [](const void* e1, const void* e2)->int { /* ... */ } is an example of an ____ comparison
  3. 3. Lambda functions with an empty capture, i.e., "[]", can be passed to _____ _______
  4. 5. A lambda function is also known as an _____ function
  5. 8. The capture and _____ _____ are very important
  6. 10. The -> in the lambda expression [](int n1, int n2)->bool {}
  7. 11. Inline lambda functions create several _____ issues
  8. 12. Naming things is good when we have a good name, but a _____ when we don't