new move value policy

This commit is contained in:
Wenzel Jakob
2016-04-25 23:04:27 +02:00
parent fbafdea672
commit f7b5874ca3
6 changed files with 130 additions and 60 deletions

View File

@@ -1,13 +1,13 @@
Value constructor: Creating a sequence with 5 entries
s = <example.Sequence object at 0x1033bd8d0>
s = <example.Sequence object at 0x10c786c70>
len(s) = 5
s[0], s[3] = 0.000000 0.000000
12.34 in s: False
12.34 in s: True
s[0], s[3] = 12.340000 56.779999
Value constructor: Creating a sequence with 5 entries
Copy constructor: Creating a sequence with 5 entries
Freeing a sequence with 5 entries
Move constructor: Creating a sequence with 5 entries
Freeing a sequence with 0 entries
Value constructor: Creating a sequence with 5 entries
rev[0], rev[1], rev[2], rev[3], rev[4] = 0.000000 56.779999 0.000000 0.000000 12.340000
0.0 56.7799987793 0.0 0.0 12.3400001526