1 #include "iobuffer.hpp"
3 #include <glog/logging.h>
9 // fill v with values [0..9]
11 for (size_t i
= 0; i
< 10; ++i
)
14 // chop off the end of v, which now should be [0..4], but
15 // the other 5 values should remain in memory
21 // verify the values are unchanged
22 CHECK_EQ(v
.size(), 10);
23 for (size_t i
= 0; i
< 10; ++i
) {
24 CHECK_EQ(*(v
.data() + i
), i
);