 the following data:

<pre><code>(1 2 3) [4:5]</code></pre>

The code:

<code><pre>tuple&lt;int, int, int&gt; i;
tuple&lt;int, int&gt; j;

cin &gt;&gt; i;
cin &gt;&gt; tuples::set_open('[') &gt;&gt; tuples::set_close(']') &gt;&gt; tules::set_delimiter(':');
cin &gt;&gt; j;
</code></pre>

reads the data into the tuples <code>i</code> and <code>j</code>.

<p>
Note that extracting tuples with <code>std::string</code> or C-style string
elements does not generally work, since the streamed tuple representation ma