From c7517066316d5eb73dff82d7c395ea80d3e615d6 Mon Sep 17 00:00:00 2001 From: roadmap bot <135830415+roadmap-bot@users.noreply.github.com> Date: Fri, 9 Jun 2023 01:51:32 +0100 Subject: [PATCH] chore: add resource under cpp:functions:lambda --- src/data/roadmaps/cpp/content/103-functions/100-lambda.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/cpp/content/103-functions/100-lambda.md b/src/data/roadmaps/cpp/content/103-functions/100-lambda.md index 4f4736033..e893e019a 100644 --- a/src/data/roadmaps/cpp/content/103-functions/100-lambda.md +++ b/src/data/roadmaps/cpp/content/103-functions/100-lambda.md @@ -59,4 +59,7 @@ auto updateDays = [&expiresInDays](int newDays) { updateDays(30); // expiresInDays = 30 ``` -Note that, when using the capture by reference, any change made to the captured variable *inside* the lambda function will affect its value in the surrounding scope. \ No newline at end of file +Note that, when using the capture by reference, any change made to the captured variable *inside* the lambda function will affect its value in the surrounding scope. + +- [Lambdas in C++](https://youtu.be/mwgmbbz0y8c) +- [Lambda Expressions](https://en.cppreference.com/w/cpp/language/lambda) \ No newline at end of file