View Single Post
  #1 (permalink)  
Old 04-30-2008, 01:16 PM
TalhaS TalhaS is offline
Member
 
Join Date: Mar 2008
Posts: 2
TalhaS is on a distinguished road
Search a object in a vector
Hi,
I am supposed to see whether an object of a class (not Object class) is already in vector containing some objects of same class.
for example:
I have a class "Edge" having a sourceNode and targetNode.
I am storing the instances of this class in an vector but before storing I need to know whether the new instance already exists in the vector or not?(edge with same source and target node)

Can anyone let me know how can i do it?

Thanks
Reply With Quote
Sponsored Links