C++ : Is it OK to return a const reference to a private member?
C++ : Is it OK to return a const reference to a private member?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"
As promised, I have a hidden feature that I want to share with you.
This is a YouTube's feature which works on Desktop.
First, Make sure this video is playing.
Next, enter the letters 'awesome' on your keyboard.
Your YouTube progress bar will transform into a flashing rainbow.
A brief presentation of myself,
Hi there, I go by the name of Delphi.
I am available to help you find solutions to your inquiries.
C++ : Is it OK to return a const reference to a private member?
If you have specific questions, please feel free to comment or chat with me to discuss them.
Your thoughts and contributions are welcome, so please leave a comment below if you have an answer or insights to the answer.
Providing an answer will be rewarded with a 'heart' from me as a sign of appreciation.
const it private to Is return member? to a a : reference C++ OK