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 <
Comments
Post a Comment