Moving stream operator >> to the next position
<p>Say I have a string object called line which contains:</p>

<pre><code>Number: 3423
</code></pre>

<p>and I want to do the following:</p>

<pre><code>string keyword;
int number;
stringstream(line) &gt;&gt; keyword &gt;&gt; number;
</code></pre>

<p>But I only want to extract the number, and am not interested in the keyword.</p>

<p>is there a way of doing this without having to declare a string object?</p>
