
16 Oct
2011
16 Oct
'11
2:35 p.m.
On Sun, Oct 16, 2011 at 4:31 PM, Peter Dimov <pdimov@pdimov.com> wrote:
One question you'll invariably get from people is why you don't store begin into the shared_ptr, eliminating one pointer:
shared_ptr<T> begin_; size_t size_;
That's just an implementation detail. You can't use iterator_range that way. Instead of shared_ptr you could store just a pointer to the counter. Olaf