pybind11/example/example-operator-overloading.ref

58 lines
1.0 KiB
Plaintext
Raw Normal View History

2015-07-05 18:05:44 +00:00
Value constructor
Value constructor
2015-10-01 14:48:34 +00:00
v1 = [1.000000, 2.000000]
v2 = [3.000000, -1.000000]
2015-07-05 18:05:44 +00:00
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-07-05 18:05:44 +00:00
Destructor.
Destructor.
2015-10-01 14:48:34 +00:00
v1+v2 = [4.000000, 1.000000]
2015-07-05 18:05:44 +00:00
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-07-05 18:05:44 +00:00
Destructor.
Destructor.
2015-10-01 14:48:34 +00:00
v1-v2 = [-2.000000, 3.000000]
2015-07-05 18:05:44 +00:00
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-07-05 18:05:44 +00:00
Destructor.
Destructor.
2015-10-01 14:48:34 +00:00
v1-8 = [-7.000000, -6.000000]
2015-07-05 18:05:44 +00:00
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-07-05 18:05:44 +00:00
Destructor.
Destructor.
2015-10-01 14:48:34 +00:00
v1+8 = [9.000000, 10.000000]
2015-07-05 18:05:44 +00:00
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-07-05 18:05:44 +00:00
Destructor.
Destructor.
2015-10-01 14:48:34 +00:00
v1*8 = [8.000000, 16.000000]
2015-07-05 18:05:44 +00:00
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-07-05 18:05:44 +00:00
Destructor.
Destructor.
v1/8 = [0.125000, 0.250000]
2015-10-01 14:48:34 +00:00
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-10-01 14:48:34 +00:00
Destructor.
Destructor.
8-v1 = [7.000000, 6.000000]
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-10-01 14:48:34 +00:00
Destructor.
Destructor.
8+v1 = [9.000000, 10.000000]
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-10-01 14:48:34 +00:00
Destructor.
Destructor.
8*v1 = [8.000000, 16.000000]
Value constructor
2016-04-25 21:04:27 +00:00
Move constructor
2015-10-01 14:48:34 +00:00
Destructor.
Destructor.
8/v1 = [8.000000, 4.000000]
2015-07-05 18:05:44 +00:00
(v1+v2)*2 = [8.000000, 2.000000]
Destructor.
Destructor.