I'd like to know what is the best style to use inside my C++ library to manage function's parameters that are input-only:
void f(int a)
{
   // ...
}
void f(const int& a)
{
   // ...
}
I know that I should use the second one when I want to pass parameters that are classes or struct, but what about small values?
 
     
     
     
    