What is the difference between "std::string const &s" and "const std::string &s"?

Viewed 21009

I was looking for examples on how to do something and saw this two variants:

std::string const &s;
const std::string &s;

in different snippets.

thx for your answer :)

5 Answers
Related