“const T &arg” vs. “T arg”

Use const T & arg if sizeof(T)>sizeof(void*) and use T arg if sizeof(T) <= sizeof(void*)

Leave a Comment