Quantcast
Channel: User trojanfoe - Stack Overflow
Viewing all articles
Browse latest Browse all 217

Comment by trojanfoe on How can I see how many times a function has been called when viewing a thread in Xcode?

$
0
0
That recursiveSearch() function is gonna need two more things; firstly a way to return did not find. It's probably best to return a std::optional here, with the value unset if it did not find the value. Second the function will need to stop at the end of the list, when node == nullptr. That's a good place to return the did not find condition.

Viewing all articles
Browse latest Browse all 217

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>