Click here to Skip to main content
15,891,607 members
Articles / Programming Languages / C++

C++: Faster to Retrieve Data By Reference Parameter or Returning a Reference?

Rate me:
Please Sign up or sign in to vote.
2.33/5 (2 votes)
20 Sep 2020CPOL 7K   43   1  
Finding out whether it is faster to retrieve data by reference parameter or returning a reference in C++
Benchmark to find the faster method to retrieve data by reference parameter or returning a reference

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.

In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed here.

Comments and Discussions