Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users]Shared_ptr and std::find
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2009-08-06 22:49:36


On Thursday 06 August 2009, Ryan McConnehey wrote:
> Is it possible to have std::find compare the class that the shared_ptr
> is pointing too?

It would probably be easier to use std::find_if()

> I have a list of shared_ptr of a class called
> FundamentalTypes. The class has it's own operator==. I'd like to
> search the list with std::find using the class's operator==. I've
> included the class with the key elements I'm referring too.




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