
7 Aug
2009
7 Aug
'09
5:23 a.m.
Thanks, it looks like what I need.
It would probably be easier to use std::find_if()
As a side question, the reason I'm storing the classes as shared_ptr was to avoid the copy constructor need to place it in the list. So, if I was to store the classes in a std::list<FundamentalTypes> the class would be constructed. Then a copy constructor would be called to place the object into the list. By storing the class as a pointer I've eliminated the copy constructor call. Is this reasoning correct? Ryan