ing with this?</p><h2 id="using-constraints-to-create-template-overloads">Using constraints to create template overloads</h2><p>By using constraints, we can essentially create overloads for template functions.</p><p>Take these two functions for example:</p><pre><code>void someFunc(T)(T value)
if(is(T == string))
{
    // stuff with strings
}

void someFunc(T)(T value)
if(is(T == long))
{
    // stuff with longs
}
</code></pre><pre><code>
</code></pre><p>They both have the same name, same template parameters