c++ - Determining whether an object is in a std::set -


I'm trying to determine that an object already has a std :: set According to MSDN (and other sources) set :: search function is supposed to return end () , if the element you have not found for.

But when I apply the code after this, the set :: find returns junk ( 0xbaadf00d ) in return.

  set & lt; Cell * & gt; CellSet; Cell * cell = new cell (); If (cellSet.find (cell) == sells.and ()) {...}  

Am I using it correctly? I am working in Visual C ++ 2005

Your code as a post always <

< / P>


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -