Call assign() instead of Add() in a loop: this is not only shorter, but also ensures that reserve() is called before starting the loop and all the required memory is allocated at once.
dfd03f5