Purpose of reference template arguments : <p>You can use a reference to a global object as a template parameter. For example thus:</p>

<pre><code>class A {};

template&lt;A&amp; x&gt;
void fun()
{
}

A alpha;

int main()
{
    fun&lt;alpha&gt;();
}
</code></pre>

<p>In what situation might a reference template argument be useful?</p>
