eFunc(T)(T value)
if(is(T == string) || is(T == long))
{
    // Do stuff.
}
</code></pre><pre><code>
</code></pre><p>So what&apos;s happening here is that we&apos;re creating a template function called <code>someFunc</code>
which takes a type parameter (<code>T</code>), and it does stuff, similar to the other template functions we&apos;ve made so far.</p><pre><code>
</code></pre><p>However, take note that we can actually attach an <code>if</code> statement <em>directly to the function&apos;s signature</em>.