C++ Language/ProgramFlow/ReturnValue
Appearance
It would be unsafe to return a reference to a local variable, but you can return a reference to a data member.
Additional information about valid return types (includes interactive examples)
C++ Language |
It would be unsafe to return a reference to a local variable, but you can return a reference to a data member.
Additional information about valid return types (includes interactive examples)