CPSC 421 OOP Lambda Functions

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