Use vector<T>::data() to simplify code