1 #include "default_init_allocator.hpp"
6 #include <glog/logging.h>
10 std::vector
<int, default_init_allocator
<int>> v
;
12 // fill v with values [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
14 for (size_t i
= 0; i
< 10; ++i
)
17 // chop off the end of v, which now should be [1, 2, 3, 4, 5], but
18 // the other 5 values should remain in memory
24 for (size_t i
= 0; i
< v
.size(); ++i
) {