delete element from priority queue in c++ stl
<p>Hi 
Is i have a priority queue with declaration</p>

<pre><code>priority_queue&lt;&lt;Node&gt;,vector&lt;Node&gt;,myComp&gt; openQ
</code></pre>

<p>i am inserting node objects into it. but at some time i have to delete the element from it. (not to remove the top element)</p>

<p>Currently to delete it i am popping the element and putting it in array. if the top most element is desired then expect it i push other elements in array.</p>

<p>This is like linear search and delete. I know its not efficient and i am looking for some better ways</p>
