Return pointers, return values or pass in references, which is elegant in C++?
35227
How to "return an object" in C++?
147050
How to avoid memory leaks when using a vector of pointers to dynamically allocated objects in C++?
119780
How do pointer-to-pointer's work in C? (and when might you use them?)
58542
What is a reference variable in C++?
150233
Why doesn't reference-to-member exist in C++?
99215
What is the purpose of the return statement?
68872
What are the use cases for having a function return by const value for non-builtin type?
3868
Why use the 'ref' keyword when passing an object?
79805
Which is better, return value or out parameter?
82611
c++: when to use pointers?
106315
Is it useful to test the return of "new" in C++?
52853
Should I explicitly cast malloc()'s return value?
129581
Does C++ pass objects by value or reference?
94336
How are references implemented internally?
111615
Benefits of inline functions in C++?
39222
Is there a difference between return myVar vs. return (myVar)?
105070
Are there any downsides to passing structs by value in C, rather than passing a pointer?