>
>
> So... right now your copy ctor is O(N) and remove is O(1), correct?
>
Yes.

> Implicit sharing makes your copy ctor O(1) and detach() O(N). IOW,
> you've just deferred the copy cost until a non-const method is called.
> That's basically what COW does...
>

Yes I understand that. And people will probably be expecting that (COW)
since my container is based on other Qt containers.
Thanks for your input.

-mandeep


> (p.s. This thread should probably be on inter...@qt-project.org...)
>
> --
> Matthew
>
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to