Episode 125 of C++ Weekly.
The Optimal Way To Return From A Function
by Jason Turner
About the show:
In this episode of C++ Weekly Jason investigates the possible methods that one of two string values might be returned from a function. Which option is best? Which option can the compiler optimize the most? Do we take one return path or multiple return paths? Should a ternary be used?
Add a Comment
Comments are closed.