Replace std::vector with var-buffer.