nested overloaded operators?
<p>Is nesting overloaded operators possible ? I would like to nest &lt;&lt; inside a ()</p>

<pre><code>template&lt;class T&gt;
struct UnknownName
{
   T g;
   T&amp;operator&lt;&lt;(std::ostream&amp;os, const T&amp;v){return os&lt;&lt;v;}
   bool operator()(const T&amp;v)
   {
      if(v==g)
        //do the streaming &lt;&lt; then return true
      else return false;
   }
};
</code></pre>

<p>Would you please help me out ? I am afraid my example is unreal enough to you, please just ask if you still have any doubts. Sincerely.</p>
