Does the compiler copy a std::string into stack while passing it to a function in C++?
<p>I have a simple question. I have a long std::string that I want to pass it to a function.
I wanna know that this string will be copy to stack then a copy of that will be passed or something like pointer will be passed and no additional space will be required?</p>

<p>(C++)</p>

<ul>
<li>I have another little question: How much memory does an element of a string take?Just like <code>char</code>?</li>
</ul>
