Hi, thankx for your reply
Here are the declarations given
in Qt
typedef QList<SynStep> SynStepList;
typedef QListIterator<SynStep> StepListIterator;
SynStep* s; //where SynStep is a class defined by me
class StepList : public SynStepList
{
};
StepList steps;
if( -1 == steps.find( s ) )
typedef QList<SynStep> SynStepList;
typedef QListIterator<SynStep> StepListIterator;
SynStep* s; //where SynStep is a class defined by me
class StepList : public SynStepList
{
};
StepList steps;
if( -1 == steps.find( s ) )
To copy to clipboard, switch view to plain text mode
in STL
typedef std::vector<SynStep*> SynStepList;
typedef std::vector<SynStep*>::iterator StepListIterator;
SynStep* s; //where SynStep is a class defined by me
class StepList : public SynStepList
{
};
StepList steps;
StepListIterator sIt = find( steps.begin(), steps.end(), s);
if (sIt == steps.end())
{
//not found perform relevant operation
}
typedef std::vector<SynStep*> SynStepList;
typedef std::vector<SynStep*>::iterator StepListIterator;
SynStep* s; //where SynStep is a class defined by me
class StepList : public SynStepList
{
};
StepList steps;
StepListIterator sIt = find( steps.begin(), steps.end(), s);
if (sIt == steps.end())
{
//not found perform relevant operation
}
To copy to clipboard, switch view to plain text mode
Ok if that is the implementation for FindRef than can you please tell me how can I
implement Find....
Bookmarks