CPSC 421 OOP Lambda Functions

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