I really just started getting into programming again, as a major hobby and have been curious of a few things most about function arguments.
if I have the following
from what I understand those prototypes will make copies of the arguments, but if I do thisCode:bool CreateNewString(std::string); bool CreateNewInt(int); bool CreateNewChar(char); bool CreateNewFloat(float);
These will not create copies every time I run the function correct? so therefor using this along with inline should increase the speed of frequently used functions?Code:bool CreateNewString(const std::string&); bool CreateNewInt(const int&); bool CreateNewChar(const char&); bool CreateNewFloat(const float&);
I understand that this is a relatively stupid thing to ask but curiosity kills. Thank you for any assistance.