std::vector在c++11标准里提供一个名为data的方法,返回指针缓冲区的指针。但在这以前没有此方法,能够用其它方法来获取此指针。c++
std::vector<T>::value_type * pData = &m_vec[0];ide