Function template
<p>I have a function template as this.</p>

<pre><code>template&lt;class T&gt; T getFromString(const string&amp; inStream)
{
    istringstream stream (inStream);
    T t;

    stream &gt;&gt; t;
    return t;
}
</code></pre>

<p>I am not getting how to use this function template. I have tried the usual method of using function template it was giving an error. Please let me know for getting out of this. </p>
