How to interrupt the input stream which bind to istream_iterator
<pre><code>istream_iterator&lt;string&gt; input(cin), eos;
vector&lt;string&gt; text;

copy(input, eos, back_inserter(text));
</code></pre>

<p>how to  interrupt the <strong>input(cin)</strong> on Ubuntu Linux and Windows?</p>
