About Vector
1 posts in topic
Flat View  Flat View

Posted By:   saraswathi_s
Posted On:   Wednesday, November 7, 2001 11:51 PM

How can I select the required objects from a Vector object based on a condition( or some pattern matching)

Re: About Vector

Posted By:   John_Zukowski  
Posted On:   Thursday, November 8, 2001 10:47 AM

Get an enumeration / iterator of the elements and check each one. There is no built in support for this.

There are definitely some patterns you can follow to make it generic, like creating a filtering iterator where the filter is an interface to implement.

About | Sitemap | Contact