Patryk Wrobel
44e1f1ba4b
Remove redundant copying of std::vectors
...
Usage of initializer list in for loop to iterate over heavy types
has bad consequences. std::initialize_list is only a view and its
data is silently created as T[N]. Therefore, if someone uses
std::vector with it, it will cause deep-copying of the elements.
This change introduces usage of pointers on std::initializer_list
to perform a shallow-copy of an addresses. Furthermore, it adds
const references in few places, where copy is not needed.
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-08-16 09:27:16 +02:00
..
2022-07-12 13:08:49 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-08-10 15:23:12 +02:00
2022-08-12 09:42:58 +02:00
2022-08-12 10:40:56 +02:00
2022-08-10 15:23:12 +02:00
2022-08-11 12:55:52 +02:00
2022-08-10 15:23:12 +02:00
2022-08-11 12:55:52 +02:00
2022-07-25 09:58:38 +02:00
2022-06-13 18:33:06 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-07-08 14:28:11 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 23:32:59 +02:00
2022-05-11 14:02:04 +02:00
2022-08-11 12:55:52 +02:00
2022-08-05 19:25:23 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-04-27 13:12:16 +02:00
2022-08-11 12:53:19 +02:00
2022-08-12 09:42:58 +02:00
2022-08-16 09:27:16 +02:00
2022-08-12 09:16:34 +02:00
2022-08-12 10:40:56 +02:00
2022-08-11 12:53:19 +02:00
2022-03-22 16:16:34 +01:00
2022-07-25 09:58:38 +02:00
2022-08-11 12:55:52 +02:00
2022-08-11 12:55:52 +02:00
2022-07-04 18:20:07 +02:00
2022-08-11 12:55:52 +02:00
2022-07-04 18:20:07 +02:00
2022-05-20 14:20:13 +02:00
2022-01-31 16:02:37 +01:00
2022-08-10 15:23:12 +02:00
2022-07-04 18:20:07 +02:00
2022-08-11 12:55:52 +02:00
2022-08-16 09:27:16 +02:00
2022-08-11 12:55:52 +02:00
2022-07-14 23:44:39 +02:00
2022-07-04 18:20:07 +02:00
2022-06-29 18:03:21 +02:00
2021-12-22 13:00:43 +01:00
2021-06-23 14:00:21 +02:00
2021-06-23 14:00:21 +02:00