title: Is this the right operator for min heap?
body: <p>i'm making an operator for dijkstra.</p>
  
  <pre><code>struct st{
      int node,cost;
      bool operator&lt;(const st &amp;p) const{
          return cost&lt;p.cost;
      }
  };
  </code></pre>
  
  <p>Is this the right one i'm looking for?</p>