]> OCCT Git - occt-copy.git/commit
0029777: Foundation Classes - The methods of moving of one NCollection_Sequence to...
authormsv <msv@opencascade.com>
Wed, 23 May 2018 07:18:49 +0000 (10:18 +0300)
committermsv <msv@opencascade.com>
Mon, 28 May 2018 07:06:51 +0000 (10:06 +0300)
commite24750d195fb1244b8b9974cbe1e2d5de72915f0
tree73f5384334c53eeec7d6800fc392107534b65178
parentd2c909178edea381a99889edd7d75b57f4cdf4d3
0029777: Foundation Classes - The methods of moving of one NCollection_Sequence to another are unsafe

Make the methods Append, Prepend, InsertBefore and InsertAfter, which take another sequence as an argument, copying the sequence instead of joining if the allocators are different.

Add test cases for collection classes.
13 files changed:
src/NCollection/NCollection_List.hxx
src/NCollection/NCollection_Sequence.hxx
src/QANCollection/QANCollection_Test.cxx
tests/collections/n/array1 [new file with mode: 0644]
tests/collections/n/array2 [new file with mode: 0644]
tests/collections/n/arrayMove [new file with mode: 0644]
tests/collections/n/dblmap [new file with mode: 0644]
tests/collections/n/dmap [new file with mode: 0644]
tests/collections/n/idmap [new file with mode: 0644]
tests/collections/n/imap [new file with mode: 0644]
tests/collections/n/list [new file with mode: 0644]
tests/collections/n/seq [new file with mode: 0644]
tests/collections/n/vector [new file with mode: 0644]