Using if In A Search Statement

Let's test the 'if' statement feature we discussed in the last lesson.

We learned that C++17 allows us to specify a new variable which can be used in the condition. This variable is inside the if condition scope:

Get hands-on with 1400+ tech skills courses.