[submission] STL-compliant containers with copy-on-write

Is there any interest in a library of STL-compliant containers (vector, deque, map, set, list) with copy-on-write? -- Best regards, Alexander Sterligov

On 30/03/2011 17:09, Alexandr Sterligov wrote:
Is there any interest in a library of STL-compliant containers (vector, deque, map, set, list) with copy-on-write?
Given that Boost already provides an implementation of STL-compliant containers with several C++0x features, in particular move semantics, I don't really see the point.

At Thu, 31 Mar 2011 12:09:37 +0200, Mathias Gaunard wrote:
On 30/03/2011 17:09, Alexandr Sterligov wrote:
Is there any interest in a library of STL-compliant containers (vector, deque, map, set, list) with copy-on-write?
Given that Boost already provides an implementation of STL-compliant containers with several C++0x features, in particular move semantics, I don't really see the point.
IMO it isn't possible to really make that work anyway since STL containers expose references to their elements *and* make guarantees about iterator stability and element layout. For example, if v is a vector and I do v[0] = 1; it's not allowed to change the address of v[1] -- Dave Abrahams BoostPro Computing http://www.boostpro.com
participants (3)
-
Alexandr Sterligov
-
Dave Abrahams
-
Mathias Gaunard