Hi, thankx for your reply

Here are the declarations given
in Qt
Qt Code:
  1. typedef QList<SynStep> SynStepList;
  2. typedef QListIterator<SynStep> StepListIterator;
  3. SynStep* s; //where SynStep is a class defined by me
  4. class StepList : public SynStepList
  5. {
  6.  
  7. };
  8. StepList steps;
  9. if( -1 == steps.find( s ) )
To copy to clipboard, switch view to plain text mode 

in STL
Qt Code:
  1. typedef std::vector<SynStep*> SynStepList;
  2. typedef std::vector<SynStep*>::iterator StepListIterator;
  3. SynStep* s; //where SynStep is a class defined by me
  4.  
  5. class StepList : public SynStepList
  6. {
  7.  
  8. };
  9. StepList steps;
  10. StepListIterator sIt = find( steps.begin(), steps.end(), s);
  11. if (sIt == steps.end())
  12. {
  13. //not found perform relevant operation
  14. }
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....