capacity

capacity函數(shù):size_type capacity(),返回當(dāng)前vector在重新進(jìn)行內(nèi)存分配以前所能容納的元素?cái)?shù)量。The size of the storage capacity currently allocated for thestring.size_t is an unsigned integral type.C++ 返回string分配的存儲(chǔ)容量。跟size不同,它返回的是分配的容量的大小,并不是string里面字符串的長(zhǎng)度。..詳細(xì)

相關(guān)專題

 暫無(wú)相關(guān)專題

本周熱點(diǎn)本月熱點(diǎn)

 

  最熱通信招聘

業(yè)界最新資訊


  最新招聘信息

最新論壇貼子