|
Boost Users : |
Subject: Re: [Boost-users] [boost-users]Shared_ptr and std::find
From: Ryan McConnehey (mccorywork_at_[hidden])
Date: 2009-08-07 01:23:31
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net