
16 Oct
2011
16 Oct
'11
2:31 p.m.
Olaf van der Spek wrote:
Hi,
The current shared_array doesn't keep track of size. This greatly decreases it's usefulness. So I wrote a variant that does:
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_;