I don't think empty-constructed vector do any allocation. Still, it can be written in one line.