| | | | | |

Optimization - 2: Heap Allocation

template
<
  typename R ,
  class TList ,
  template<T> class ThreadingModel = DEFAULT_THREADING
>
class FunctorImpl : public SmallObject<ThreadingModel>
{
  ... no changes
};

template
<
  typename R ,
  class TList ,
  template<T> class ThreadingModel = DEFAULT_THREADING
>
class Functor 
{
private:
  std::auto_ptr<FunctorImpl<R, TList, ThreadingModel> > pImpl;
};

| | Top of Page | 8. Generalized Functors - 24 of 26