std::vector在c++11標準裏提供一個名爲data的方法,返回指針緩衝區的指針。但在這之前沒有此方法,可以用其它方法來獲取此指針。
std::vector<T>::value_type * pData = &m_vec[0];