Function call by value vs. by reference:
Function call by value vs. by reference
suggest changeThe scope of this section is to explain the differences in theory and implementation for what happens with the parameters of a function upon calling.
In detail the parameters can be seen as variables before the function call and inside the function, where the visible behaviour and accessibility to these variables differs with the method used to hand them over.
Additionally, the reusability of variables and their respective values after the function call also is explained by this topic.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents
11Loops
14keywords
17Pointers
26std::map
29std::any
38File I/O
39Streams
46Function call by value vs. by reference
51Unions
56Lambdas
60SFINAE
62RAII
67Sorting
84RTTI
87Scopes
102Attributes
104Profiling
107Recursion
113Header files
117Iteration
125Alignment
133Optimization
134Semaphore
136Debugging
139Mutexes
141Unit testing
142decltype
146Contributors