From: Darren Cook (darren_at_[hidden])
Date: 2003-12-22 18:11:21


> I've just uploaded the first version of a library that provides
> standard-like
> containers specialized for pointers.
>...
> The docs can be browsed online here:
>
> http://62.79.25.205/nesotto/boost-sandbox/libs/ptr_container/doc/ptr_container.html

I think the example needs to be more motivating :-).

Using normal vector:
      for_each( svec.begin(), svec.end(), PolyPtrOps() );

Using your class:
      for_each( pvec.begin(), pvec.end(), mem_fun_ref( &Poly::foo ) );

If saving writing a functor is all then we might as well use boost lambda or
bind:
      for_each( svec.begin(), svec.end(), bind(&Poly::foo,_1) );

Yes, I read the advantages and they sound good; I just think you need an
example to show them off (and perhaps some benchmarks as you say it should
be quicker and use less memory than smart pointers).

Darren