Put chars used two times in a variable is a gain of space?
<p>Related to <a href="https://stackoverflow.com/questions/35258247/how-the-compiler-manages-the-same-char">How the compiler manages the same char?</a>, create a variable which contains characters used at least two times in the code, is a gain of space?</p>

<p>Example:</p>

<pre><code>wstrFile.find_last_of(L"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
wstrFile.find_last_of(L"aefgh");
</code></pre>

<p>for the compiler: is the same or worst or better than</p>

<pre><code>std::wstring wstrTemp = L"aefgh"
wstrFile.find_last_of(L"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
wstrFile.find_last_of(wstrTemp);
</code></pre>

<p>In all cases, I will use "wstrTemp" further, its creation is needed.</p>

<p><strong>NOTE TO SOLUTION:</strong></p>

<p>Thanks to both answers.
In order to complete the answer for my question, the fact to put chars used at least two times will save space but it is totally painful/not useful to add char by char in the console, that was my main aim before this question.</p>