Copy a substring from const char* to std::string
<p>Would there be any copy function available that allows a substring to std::string?</p>

<p>Example -</p>

<pre><code>const char *c = "This is a test string message";
</code></pre>

<p>I want to copy substring "test" to std::string.</p>
