Share Focus Mode

3460:421 OOP Callbacks: Lambda Functions

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