since rbegin().base() == end() use resize instead