
27 Sep
2011
27 Sep
'11
2:26 a.m.
From: Olaf van der Spek Not having size() and others like begin, end, etc, is a serious drawback IMO.
Then why not simply use either shared_ptr<array<T, N>> or shared_ptr<vector<T>>?
Best regards, Robert
shared_ptr<array<T, N>> limits you to cases where you know the size of the array at compile time shared_ptr<vector<T>> results in two dynamic allocations: one for the vector object itself, and one for its internal array Regards, Nate