I have a set, and in that set are struct objects. Here is my set declaration:
//Where tile is the struct I'm using
set<tile> puzzleSet;
Suppose I want the tile object only. How can I do this or is it not even possible? I've tried doing:
set<tile>::iterator it = puzzleSet.find(myTile);
tile yourTile = *it;
but this just gives an error saying set iterator is not dereferencable. Thanks in advance!