Capturing [*this] in Lambda Expressions

Let's look at how to capture [*this] in Lambda Expressions.

When you write a lambda inside a class method, you can reference a member variable by capturing this. For example:

Get hands-on with 1400+ tech skills courses.