title: declaring a priority_queue in c++ with a custom comparator
body: <p>I'm trying to declare a <code>priority_queue of nodes</code>, using <code>bool Compare(Node a, Node b)</code> as the comparator function (which is outside the node class).</p>
  
  <p>What I currently have is:</p>
  
  <pre><code>priority_queue&lt;Node, vector&lt;Node&gt;, Compare&gt; openSet;
  </code></pre>
  
  <p>For some reason, I'm getting <code>Error: "Compare" is not a type name</code></p>
  
  <p>Changing the declaration to <code>priority_queue &lt;Node, vector&lt;Node&gt;, bool Compare&gt;</code></p>
  
  <p>gives me <code>Error: expected a '&gt;'</code></p>
  
  <p>I've also tried:</p>
  
  <pre><code>priority_queue&lt;Node, vector&lt;Node&gt;, Compare()&gt; openSet;
  priority_queue&lt;Node, vector&lt;Node&gt;, bool Compare()&gt; openSet;
  priority_queue&lt;Node, vector&lt;Node&gt;, Compare&lt;Node, Node&gt;&gt; openSet; 
  </code></pre>
  
  <p>How should I correctly declare my <code>priority_queue</code>?</p>