回答編集履歴
2
修正 back_inserterを使う必要があった
test
CHANGED
@@ -32,6 +32,6 @@
|
|
32
32
|
|
33
33
|
memcpy(input.data(), buffer, count * sizeof(xxx_t));
|
34
34
|
|
35
|
-
std::copy(begin(input), end(input), b
|
35
|
+
std::copy(begin(input), end(input), std::back_inserter(list));
|
36
36
|
|
37
37
|
```
|
1
ゴミが入ってた
test
CHANGED
@@ -30,8 +30,6 @@
|
|
30
30
|
|
31
31
|
std::vector<xxx_t> input(count);
|
32
32
|
|
33
|
-
void *memcpy(void *buf1, const void *buf2, size_t n);
|
34
|
-
|
35
33
|
memcpy(input.data(), buffer, count * sizeof(xxx_t));
|
36
34
|
|
37
35
|
std::copy(begin(input), end(input), begin(list));
|