typedef function is not a type name?
<p>This is my code inside <code>myCode.h</code>:</p>

<pre><code>#include &lt;set&gt;

using namespace std;

bool MyObjectComp(const MyObject&amp; lhs, const MyObject&amp; rhs) {
    return lhs.mTick &lt; rhs.mTick;
}

typedef std::multiset&lt;MyObject, MyObjectComp&gt; MyObjectMultiSet;
</code></pre>

<p>but it says that function <code>MyObjectComp</code> is not a type name. Where should I place it?</p>