Lines Matching refs:buf
10 int *buf = (int *)malloc(n * sizeof(int));
12 buf[0] = 66;
14 // Call to copy should invalidate buf.
15 std::copy(v.begin(), v.end(), buf);
17 int i = buf[0];
21 return buf;
26 int *buf = (int *)malloc(n * sizeof(int));
28 buf[0] = 66;
30 // Call to copy_backward should invalidate buf.
31 std::copy_backward(v.begin(), v.end(), buf + n);
33 int i = buf[0];
37 return buf;