title: How should I pass a std::string to a function?
body: <p>Should I always pass a std::string by const reference to a function if all that is done inside that function is to copy that string? Additionally, what is the difference (perf or otherwise) between passing by value and passing by reference? As I understand, one uses <code>operator=</code> and the other copy constructor. Is that the case?</p>