KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is one of these faster? inline int ProcessByValue(int i) { // process i somehow } inline int ProcessByReference(const int& i) { // process i somehow } I know that integral types should be passed by value. However, I am concerned that the compiler might inline ProcessByValue to contain a copy. Is there a rule for this?
Tags (comma-separated)
Save Edits
Cancel